AWS: Logs – install/configure the CloudWatch Logs Agent

Quick guide:

https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/QuickStartEC2Instance.html

 

awslogs:

Super handy CLI: https://github.com/jorgebastida/awslogs

Install with: pip install awslogs --ignore-installed six

Examples:

List groups: awslogs groups

 

List streams in a group

Assuming your group is /var/log/syslog then:

awslogs streams /var/log/syslog

 

Watch all logs:

awslogs get /var/log/syslog ALL --watch