Skip to content

Instantly share code, notes, and snippets.

@boynoiz
Last active March 28, 2019 07:31
Show Gist options
  • Save boynoiz/ac31988532a7b73e3470fa30cb5a0f42 to your computer and use it in GitHub Desktop.
Save boynoiz/ac31988532a7b73e3470fa30cb5a0f42 to your computer and use it in GitHub Desktop.
Log filter with awk
awk 'match($1,/RequestTime:([0-9]+)/, arr) && arr[1] > 2000 && $6 >= "[27/Mar/2019:09:00:00" && $6 < "[27/Mar/2019:23:59:00" && !/web_service|.ico|.svg|.png|.jpg|.jpeg|.css|.js|.gif|.woff2|:0m/' input.log > output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment