I am deploying a python application using nginx/uwsgi on aws.
What is the best/recommended way to view the log files produced from those two modules (in /var/log/uwsgi
and /var/log/nginx
) as also some custom application log files e.g. in /my/app/logfiles/error.log
etc?
The best and easiest way to keep track of your logs is using Amazon CloudWatch Logs.
For an overview, read the blog post. To setup/install the CloudWatch Logs agent, read Getting Started.
Your EC2 instance will also need an IAM role allowing it to write logs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With