How-to modify Logfile retention

This article details the configuration for logfile retention with Checkmk.

LAST TESTED ON CHECKMK 2.1.0P1

Table of Contents

Problem

You want to change the default log file retention within Checkmk.

Solution

Site log files

Have a look at the following files and directories within your Checkmk site:

~/etc/logrotate.conf
~/etc/logrotate.d/

Here you can find the default log retention settings and adapt them to your needs if necessary.

Changing these settings might result in manual action when upgrading Checkmk.

Please also make sure to understand what you are doing here to avoid future issues.

Checkmk history log

Within Checkmk, you can configure the time of day when the rotation of the history log occurs, as well as the size necessary to trigger a rotation: