Skip to content

Instantly share code, notes, and snippets.

@shawing
Created June 2, 2015 19:14
Show Gist options
  • Save shawing/5e8cd53921621c8dcde2 to your computer and use it in GitHub Desktop.
Save shawing/5e8cd53921621c8dcde2 to your computer and use it in GitHub Desktop.
Multitail color-code each line based on it's http status code "family"
check_mail:0
# color-code each line based on it's http status code "family"
colorscheme:nginx
cs_re:green:^.* 20.? .*$
cs_re:cyan:^.* 30.? .*$
cs_re:yellow:^.* 40.? .*$
cs_re:red:^.* 50.? .*$
@shawing
Copy link
Author

shawing commented Jun 2, 2015

I use this on a busy nginx server. When the log entries fly by faster than you can read it, this is nice to see all the 200 status codes colored green and then I can just focus on the yellow and red lines for a site's problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment