awslogs Command Examples

Queries groups, streams and events from Amazon CloudWatch logs. More information: https://github.com/jorgebastida/awslogs.

awslogs groups

awslogs streams {{/var/log/syslog}}

awslogs get {{/var/log/syslog}} --start='{{2h ago}}' --end='{{1h ago}}'

awslogs get {{/aws/lambda/my_lambda_group}} --filter-pattern='{{ERROR}}'

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