Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Info

This article details the configuration for logfile retention with Checkmk.

Status
colourGreen
titleLAST 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:

Code Block
languagebash
themeRDark
~/etc/logrotate.conf
~/etc/logrotate.d/

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

Warning

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:

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("kb-how-to-article","howto","logfile") and type = "page" and space = "KB"
labelskb-how-to-article

Page Properties
hiddentrue


Related issues