awslogs
Query groups, streams, and events from Amazon CloudWatch logs. More information: https://github.com/jorgebastida/awslogs#options.
- List log groups:
awslogs groups
- List existing streams for the specified group:
awslogs streams
- Get logs for any streams in the specified group between 1 and 2 hours ago:
awslogs get '' ''
- Get logs that match a specific CloudWatch Logs Filter pattern:
awslogs get --filter-pattern ''
- Watch logs for any streams in the specified group:
awslogs get ALL --watch
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
