1

Is it possible to watch (tail) the logs from an app hosted on Elastic Beanstalk from the command line?

I know this is possible in Heroku using heroku logs -t, but am unsure if there is a way to do this with Beanstalk. If not, any suggestions or tips on how to best manage the logs?

Taylor Halliday
  • 640
  • 1
  • 8
  • 18

2 Answers2

1

You can ssh to Elastic Beanstalk instance and tail any log. Alternatively, you can publish logs to S3.

For example, the following logs are available for Python environment:

/opt/python/log/httpd.out
/var/log/httpd/error_log
/var/log/cfn-hup.log
/opt/python/log/supervisord.log
/var/log/eb-tools.log
/var/log/httpd/access_log
/var/log/eb-cfn-init-call.log
/var/log/eb-publish-logs.log
/var/log/cfn-init.log

You can find the list of logs available for your environment in web console: Logs > Snapshot Logs > View log file

Community
  • 1
  • 1
kukido
  • 9,895
  • 1
  • 39
  • 49
  • Ok - learning experience for me. What I was looking for is called SSH...ing. Just knowing that pointed me in the right direction w/ the help of google. – Taylor Halliday Feb 12 '14 at 19:06
-1

You will be better off using services like loggly and splunk. You can live watch the logs from multiple server simultaneously and live in the browser itself.

There are free plans also available.

Sony Kadavan
  • 3,574
  • 2
  • 16
  • 24