Werk #16072: Add wato audit log to logrotate cronjob

Component Site management
Title Add wato audit log to logrotate cronjob
Date Nov 13, 2023
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The wato audit log ~/var/check_mk/wato/log/wato_audit.log was not rotated regularly. This lead to an ever growing audit log, which could not be viewed anymore once it reached several hundred MB of log lines.

Therefore, the audit log will now rotate regularly to archive files bigger than 300MB.

Existing logfiles greater 300MB will be splitted up on update and the source file will be backed up as wato_audit.log_backup.

To the list of all Werks