if you want to use syslog like logging, checkmk writes one logfile for the events like syslog or snmptraps per day. This logfile will not be deleted or compressed.

I like to use this approach via cron > compress the files oder than 30 days and delete the compressed files after 1000 days:
-------------------------------------------------

55 23 * * * find /omd/sites/mysite/var/mkeventd/messages/ -mtime +30 |grep log$ |xargs -n 1 gzip -f >/dev/null 2>/dev/null
55 23 * * * find /omd/sites/mysite/var/mkeventd/messages/ -mtime +1000 |grep gz$ |xargs -n 1 rm >/dev/null 2>/dev/null

computer2know :: thank you for your visit :: have a nice day :: © 2024