Skip to content

Instantly share code, notes, and snippets.

@dacgray
dacgray / get-log.sh
Created March 25, 2022 13:54
Fetch AWS Cloudwatch exported S3 logs, extract, combine and sort.
#!/bin/bash
set -eE
mkdir -p .log
rm -rf .log/*
aws s3 --profile PROFILE --region REGION sync s3://my-log-bucket/exportedlogs .log/
cd .log