Skip to content

Instantly share code, notes, and snippets.

@philippreston
Last active November 10, 2021 09:10
Show Gist options
  • Save philippreston/1be530df004d305fe42523ffa8dc4a50 to your computer and use it in GitHub Desktop.
Save philippreston/1be530df004d305fe42523ffa8dc4a50 to your computer and use it in GitHub Desktop.
JQ Search and Convert NanoSecond Epoch
cat /audited_events.json | jq -c '. | select((.type | contains("ARP")) and .metadata.ip_addr == "10.2.2.61") | (.timestamp /= 1000000000) | (.timestamp |= todate)' > arp_10.2.2.61.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment