Difference between revisions of "Amazon CloudWatch Logs groups"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
  
 
== See also ==
 
== See also ==
 +
* {{AWS CloudWatch}}
 
* {{CW}}
 
* {{CW}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Revision as of 10:41, 29 February 2024


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: