0

My EC2 insurance is started by beanstalk and my logging just stops randomly after successfully loghing for a few minutes. But I know my app is still running due to database entries.

I restarted journald using systemctl restart systemd-journald and that seems to start the logging again.

What can I do to investigate this further?

Jonny Shanahan
  • 351
  • 3
  • 13

1 Answers1

0

Turns out this was due to my app being python based and python automatically buffers stdout and stderr streams. I started the app using PYTHONUNBUFFERED=1 before the command and now logs stream in real time

Jonny Shanahan
  • 351
  • 3
  • 13