Reputation: 43
I have an AWS Elastic Beanstalk environment with some amazon linux instances running multi docker. I have enabled log rotation from the beanstalk console and I can see the logs getting published to S3 every hour.
I want to change this default S3 path( elasticbeanstalk-aws-region-xxxxx/resources/environments/logs/publish/yyyyy/i-zzzzz
) to my-bucket/eb/apps/logs
.
How do I set a cutom path?
Upvotes: 0
Views: 555
Reputation: 3632
The default path where it gets saved to the Elastic Beanstalk bucket is fixed but you can perform so post-processing in a Lambda to copy them to any bucket structure you want.
The high-level steps are:
Upvotes: 0
Reputation: 238747
How do I set a cutom path?
You can't change it. Its name is fixed for EB service in general.
Upvotes: 1