CmdID

CmdID / Commands

aws-logs

Interact with log files from various AWS services. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List log groups

aws logs list-log-groupsIdentify

Continuously poll logs of a CloudWatch log group

aws logs tail log_group_name --followIdentify
--followWhether to continuously poll for new logs. AWS CLI reference

Tail 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 reference

Stream 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 reference

Export 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