Skip to content

Instantly share code, notes, and snippets.

@riywo
Created February 22, 2011 07:28
Show Gist options
  • Save riywo/838334 to your computer and use it in GitHub Desktop.
Save riywo/838334 to your computer and use it in GitHub Desktop.
アクセスログをtailしてstatus codeが500だったら赤色にするawk
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