DEPRECATED: I found https://github.com/nojhan/colout to be a superior implementation of this concept.
easy portable bashscript to monitor syslog- and logfile events with on-the-fly filtering and highlight features
./logfilter /var/log/syslog
'tail -f' is nice to monitor logfiles, but its far from ideal. Especially when dealing with large volumes of data. Logfilter prevents you from going crazy with bashoneliners to get some sensible output.
Basically you will be going from this:
To this:
This portable utility was written to overcome the repetitiveness of fiddling with grep and tail -f. Logfilter is a wrapper for 'tail -f' and grep.
At any time you can press CTRL-C and modify your incoming regex:
Too much data to stdout? At any time you can press CTRL-C and modify your outgoing regex:
Want to have warnings/errors to standout? Press CTRL-C and modify your highlighting regex: