Created
March 13, 2015 00:11
-
-
Save vpack/e5a30f68db7be7c593ee to your computer and use it in GitHub Desktop.
Ingest CloudTrail files to MongoDB
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
for x in `find . -name "*.json.gz"` ; do zcat $x | jq .Records[] | mongoimport --collection cloudtrail --jsonArray ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment