#919866 logcheck: Feature request: wildcards in .logfiles pathnames

Package:
logcheck
Source:
logcheck
Submitter:
Charles Atkinson
Date:
2024-05-12 18:18:04 UTC
Severity:
wishlist
Tags:
#919866#5
Date:
2019-01-20 10:20:55 UTC
From:
To:
Dear Maintainer,

Please consider introducing wildcards into the paths in the .logfiles configuration files.  Perhaps similar to the way they are used in logrotate's paths.

A use case is when using logcheck to check logs from multiple non-Debian systems such as routers, each having a dedicated directory with the last directory being their FQDN.  The router FQDNs follow a fixed pattern.  Currently this requires an /etc/logcheck-for-routers/logcheck.logfile.d file for each router.  If .logfiles supported wildcards, a single /etc/logcheck-for-routers/logcheck.logfile.d file could be used for all routers and there would be one less step in the procedures to commission and to decommission a router.

Best

Charles

#919866#10
Date:
2024-05-12 18:13:42 UTC
From:
To:
(It's a shame no-one replied since 2019: let's change that now)

You could instead implement this by a script that updates the
.logfiles file before logcheck runs: if you put this into
logcheck.conf it would work, so eg:

echo /var/log/whatever/*.log >
/etc/logcheck-for-routers/logcheck.logfiles.d/routers.logfiles

If that would meet your needs we could close this bug - the code to
read logfiles.list is already over-complicated and adding more
features needs a good reason