We are running 1.6p8 instance of CMK EE, using logwatch to forward/alert on certain logs.
Our logwatch.cfg is below:
/usr1/dbs/*.log maxlinesize=1024
C (?i)ERROR
C (?i)WARNING
There are some logs that appear with the ERROR/WARNING text that are just noise and I don’t need to forward these for further processing. How can I drop these while forwarding everything else that matches?
One of the warnings that I don’t need appear in the log file as: “WARNING User not licensed.”
I tried adding…
I (?i)user not licensed
This did not work. I did not find a lot of docs on logwatch configuration file.
This will only work with the “I” ignore line. In your test why is there a “(?!)” in the ignore line?
As a reference for the config file the example config is a good start.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.