Difference between revisions of "Amazon CloudWatch Logs groups"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * [[describe-log-groups]] | ||
+ | * [[create-log-group]] | ||
+ | * [[delete-log-group]] | ||
+ | [[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 == | ||
* [[Amazon CloudWatch Logs]]: [[AWS CloudWatch log streams]] | * [[Amazon CloudWatch Logs]]: [[AWS CloudWatch log streams]] | ||
+ | * [[tee -a]] | ||
+ | == See also == | ||
+ | * {{aws logs}} | ||
+ | * {{AWS CloudWatch}} | ||
− | + | [[Category:AWS]] | |
− |
Latest revision as of 10:42, 29 February 2024
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[edit]
See also[edit]
aws logs
[get-log-events | tail | describe-log-groups
|create-log-group | delete-log-group | describe-log-streams ],
AWS::Logs::LogGroup
- AWS monitoring: AWS CloudWatch: Logs, Logs Insights, Events, Alarms,
aws cloudwatch, aws logs
, Amazon CloudWatch Lambda Insights, AWS CloudWatch Container Insights, CloudWatch Dashboard, AWS CloudWatch Automatic Dashboards, Amazon RDS Performance Insights, Amazon CloudWatch Metric Streams, Amazon CloudWatch Lambda Insights,CloudwatchLogsGroup
, Amazon CloudWatch Anomaly Detection,cloudwatch kms key id
, CloudWatch agent, Amazon CloudWatch Evidently, namespace, Synthetics, Synthetics Canaries, YACE, Prometheus cloudwatch exporter, Amazon CloudWatch Observability Access Manager, Amazon CloudWatch Live Tail
Advertising: