Created
June 5, 2015 09:14
-
-
Save sneak/691804298026cda3473d to your computer and use it in GitHub Desktop.
analyze cloudtrail json logs to find api calls made
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find . -iname '*.json' | \ | |
xargs -P 8 jq -c '.Records[] | [ .userIdentity.arn, .userIdentity.userName, .eventName ]' \ | |
>> out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment