Xymon Mailing List Archive search

quick question - wildcard multiple logs in client-local?

list Japheth Cleaver
Wed, 24 Sep 2014 12:34:59 -0700
Message-Id: <user-750e92d6f1b6@xymon.invalid>

On Wed, September 24, 2014 11:47 am, Betsy Schwartz wrote:
I have a set of ever-changing-name log files which I want to check for the
string "ERROR"

This works in client-local.cfg, for file metadata:
file:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*`

This does not work
log:`ls /vg8_bo3_stats/vg8_stats/top_talkers/server_*/server*`
The syntax is slightly different between the two...

https://www.xymon.com/help/manpages/man5/client-local.cfg.5.html
           log:/var/log/messages:SIZE
           file:/var/log/messages[:HASH]

Just add a buffer size value after your cmd on the log line and you should
be set.


HTH,

-jc