Skip to content

Instantly share code, notes, and snippets.

@andreyshuster
Created August 21, 2014 06:59
Show Gist options
  • Save andreyshuster/ecb683d31e11ac53bd70 to your computer and use it in GitHub Desktop.
Save andreyshuster/ecb683d31e11ac53bd70 to your computer and use it in GitHub Desktop.
colored tail logs. requires ack-grep
tail -f /var/log/nginx/access.log | ack-grep --flush --passthru --color --color-match=red "^.* 404 .*$" | ack-grep --flush --passthru --color --color-match=green "^.* 200 .*$"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment