aws-logs
Interact with log files from various AWS services. tldr-pages
On several platforms
Several platforms
List log groups
aws logs list-log-groupsIdentifyContinuously poll logs of a CloudWatch log group
aws logs tail log_group_name --followIdentify--followWhether to continuously poll for new logs. AWS CLI referenceTail the logs of a CloudWatch log group based on a filter
aws logs tail log_group_name --filter-pattern patternIdentify--filter-patternThe filter pattern to use. AWS CLI referenceStream near real-time logs from a log group
aws logs start-live-tail --log-group-identifiers log_group_nameIdentify--log-group-identifiersAn array where each item in the array is a log group to include in the Live Tail session. AWS CLI referenceExport logs to an S3 bucket
aws logs create-export-task --log-group-name log_group_name --from start_time --to end_time --destination s3_bucket_nameIdentify--log-group-nameThe name of the log group. AWS CLI reference--fromThe start time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. AWS CLI reference--toThe end time of the range for the request, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC. AWS CLI reference--destinationThe name of S3 bucket for the exported log data. AWS CLI reference