aws logs
Interact with log files from various AWS services. More information: https://docs.aws.amazon.com/cli/latest/reference/logs/.
- List log groups:
aws logs list-log-groups
- Continuously poll logs of a CloudWatch log group:
aws logs tail --follow
- Tail the logs of a CloudWatch log group based on a filter:
aws logs tail --filter-pattern
- Stream near real-time logs from a log group:
aws logs start-live-tail --log-group-identifiers
- Export logs to an S3 bucket:
aws logs create-export-task --log-group-name --from --to --destination
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
