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 a771666 commit 920cf5f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aws/aws_eks_cloudwatch_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,14 @@ for log_group in $log_groups; do

done

timestamp "Logs fetched, creating compressed tarball"
echo

tarball="$eks_cluster.master.cloudwatch.logs.$tstamp.tar.gz"

tar czvf "$tarball" "aws_eks_${eks_cluster}_"*".$tstamp.log"

timestamp "Generated tarball: $tarball"
echo

timestamp "Completed download of AWS EKS CloudWatch Logs for cluster: $eks_cluster"

0 comments on commit 920cf5f

Please sign in to comment.