multitail.conf
.
Here is an example of using multitail
. The command below tails two files: an apache access log and a tomcat catalina log using two different colorschemes.
$ multitail -cS apache /tmp/apache/access_log -cS log4j ${TOMCAT_HOME}/logs/catalina.outYou can also add additional colorschemes to your
~/.multitailrc
. A colorscheme is simply a set of regular expressions to capture and highlight the text you are interested in. Here is my config file which contains my custom XML colour scheme.
check_mail:0 colorscheme:xml # element text cs_re_s:white:>([^<]*)< # attribute key cs_re_s:green: ([^ =]*)= # attribute value cs_re_s:red:=("[^"]*") # element name cs_re:blue,,bold:<[^>]*>Used like this:
$ multitail -cS xml /var/log/config.xmlRelated Post:
Highlighting Command Output with Generic Colouriser
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.