Amazon CloudWatch Logs groups

From wikieduonline
Revision as of 10:41, 29 February 2024 by Welcome (talk | contribs) (→‎See also)
Jump to navigation Jump to search


ChatGPT:

for log_stream_name in $(aws logs describe-log-streams --log-group-name <log-group-name> --output text --query 
'logStreams[*].logStreamName'); do aws logs get-log-events --log-group-name <log-group-name> --log-stream-name 
$log_stream_name --output text --query 'events[*].message' >> all_logs.txt; done


Related

See also

Advertising: