Skip to content

Commit

Permalink
updated aws_eks_cloudwatch_logs.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Oct 15, 2024
1 parent ed0fdb1 commit 96fb5e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aws/aws_eks_cloudwatch_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ for log_group in $log_groups; do

for log_stream in $log_streams; do
timestamp "Getting logs for stream: $log_stream"
aws logs get-log-events --log-group-name "$log_group" --log-stream-name "$log_stream" --limit "$limit"
aws logs get-log-events --log-group-name "$log_group" --log-stream-name "$log_stream" --limit "$limit" |
jq -Mr '.events[] | [.timestamp + " " .message] | @tsv'
done
echo

Expand Down

0 comments on commit 96fb5e6

Please sign in to comment.