Skip to content

Instantly share code, notes, and snippets.

@jayers99
Created March 25, 2019 17:15
Show Gist options
  • Save jayers99/d248666b8d26b65708b59507de05eb04 to your computer and use it in GitHub Desktop.
Save jayers99/d248666b8d26b65708b59507de05eb04 to your computer and use it in GitHub Desktop.
pretty print aws vpc flow logs
{
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