Monitoring apache logs with tail –f tends gets very frustrating for the eyes after a while. Are there any tool/options to colorize the log outputs? Maybe signal FATAL with red, etc...
|
| |||
feedback
|
|
I'm using multitail to monitor logs, it includes coloring as well as multiple logfile monitoring either merged or in windows. Give it a try. | |||
|
feedback
|
|
Found this: http://fixunix.com/unix/83044-tail-color.html
This only works on ANSI terminals, but all others have become virtually extinct. \e[...m ist the ANSI escape sequence SGR "select graphic rendition". The "..." can be replaced by some semicolon-separated integers, with the meaning: 0 : all attributes off 1 : bold 31 : foreground red 43 : background yellow "keyword", of course, can be any perl regular expression: (foo|bar) highlight the strings foo and bar \b((foo|bar)\b highlight the words foo and bar .\b((foo|bar)\b. highlight the whole line that contains the words foo or bar Or, the easy way, just install http://developwithstyle.com/articles/2010/04/20/tail-your-logs-with-a-touch-of-color.html | |||||
|
feedback
|