Last active
March 28, 2019 07:31
-
-
Save boynoiz/ac31988532a7b73e3470fa30cb5a0f42 to your computer and use it in GitHub Desktop.
Log filter with awk
This file contains 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
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