Created
March 25, 2019 17:15
-
-
Save jayers99/d248666b8d26b65708b59507de05eb04 to your computer and use it in GitHub Desktop.
pretty print aws vpc flow logs
This file contains hidden or 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
{ | |
cmd = "date -d @"$11" +%Y-%m-%dT%H:%M:%S" | |
cmd | getline myTime | |
close(cmd) | |
printf "%s %-16s %-5s %-16s %-5s %s\n", myTime, $4, $6, $5, $7, $13 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment