Created
February 22, 2011 07:28
-
-
Save riywo/838334 to your computer and use it in GitHub Desktop.
アクセスログをtailしてstatus codeが500だったら赤色にする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
tail -f access_log | awk '$9 == 500{print "\033[31m"}{print $0,"\033[0m"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment