Logwatch: Delete multiple logfiles more easily and flexibly
Allow deletion of multiple log files, selected by the user in one delete operation
Currently, one can see all logfiles by going to this URL within a site: https://[server]/[site]/check_mk/logwatch.py?file=&host=&site=
As a user, I might only want to empty some of the log files, and not all. I would like to select with a checkbox the relevant logs and delete them.
Comments: 5
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
16 Feb, '23
Sven Rubenalready possible (at least in 2.1) on one host: after „open log file“ just click on „log files“ button to see them all (for this host) and then the button „clear log“ to clear them all at once
-
04 Nov, '25
AndreasHi all ,
Is there a way that we can do a service search and delete all log files from the service search across hosts, maybe this could be the Feature Request from Thomas (and would be mine if I would create it). -
04 Nov, '25
Michael WuttkeI think this is not the solution Thomas asked for. We need to delete multiple logfiles in one step from different hosts, e.g. from the "Service Problems" overview page. There we can acknowledge selected problems using checkboxes there but it is not possible to delete log file messages using checkboxes and delete all marked. For us this is a problem since the first releases of Check_MK. Often mentioned in conferences, often ignored.
-
04 Nov, '25
Martin Hirschvogel AdminThanks for the quick feedback. So was already worth to put this into "Already exists" as now it is much more clear what your need is. I adapted the idea and added a screenshot for clarity.
Andreas, there is one solution: https://play.checkmk.com/play/check_mk/logwatch.py?file=&host=&site=
You can set filters in the URL params for host and site. The file URL param does not do anything for filtering. And then empty all matching log files.
But that page is missing a) checkboxes and b) proper filters.
That would solve both your and Michael's need much better.