Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created July 2, 2021 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcolazurdo/0b88f5e0766a93efd02f6613ebec5ce0 to your computer and use it in GitHub Desktop.
Save pcolazurdo/0b88f5e0766a93efd02f6613ebec5ce0 to your computer and use it in GitHub Desktop.
AWS SHD parsing

Download the file from

wget https://status.aws.amazon.com/data.json

basic parsing

jq -r '(.archive[] | 
       (.date| tonumber | todate) as $D | 
       select($D | startswith("2021"))| 
       [.service_name, $D[0:10] ,.service,.summary])  | @csv ' \
       data.json >~/Downloads/failures.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment