Can I add custom log files to the logs captured by elastic beanstalk’s ‘eb logs’ command?


When I request the log files for an elastic beanstalk environment either through the web interface or “eb logs” I get the contents of the log files /var/log/eb-version-deployment.log, /opt/python/log/httpd.out, /var/log/cfn-hup.log, and several others.

Is there a way to add an additional log such as test_output.log to logs collected by the web interface and “eb logs”?


Elastic Beanstalk looks in this folder for configuration files regarding which logs to tail:

On my box there are a handful of files there

And each one has one line in it, like this:


Use .ebextensions to add a config file to tail your own logs:

More info here:

Leave a Reply