Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 649 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 649 Bytes

show-struct

Shows possible jq paths in a JSON file

Sample usage (when in path):

show_struct.py BLAH_CloudTrail_us-east-1_BLAH_sViXVfCImmbyVBO6.json

Sample usage (when not in path):

./show_struct.py BLAH_CloudTrail_us-east-1_BLAH_sViXVfCImmbyVBO6.json

Sample output:

.Records -- (Array of 3 elements)
.Records[]
.Records[].awsRegion -- us-east-1
.Records[].eventName -- DescribeInstances
.Records[].eventSource -- ec2.amazonaws.com
.Records[].eventTime -- 2013-12-06T10:34:34Z .. 2013-12-06T10:36:36Z (3 unique values)
...
.Records[].sourceIPAddress -- 1.2.3.4 .. 5.6.7.8 (3 unique values)