Aktionen
Install Procedure for logwatch¶
Requirements¶
To install logwatch you will need the following:- a installed and supported operating system (e.g. CentOS 9.x)
- root-access
- a fast internet connection
Preliminary Note¶
Install¶
Install logwatch
:
dnf install logwatch
Configure¶
the default output is to stdout
the cron.daily call is using the option --output mail
if you still want to override default output from stdout to mail then
vim /etc/logwatch/conf/logwatch.conf
# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf) Output = mail
reduce noise in output¶
see also https://bugzilla.redhat.com/show_bug.cgi?id=1231364#c38
Just for the records: logwatch uses Perl style regexes in ignore.conf
. So look at
man 1 perlre
vim /etc/logwatch/conf/ignore.conf
###### REGULAR EXPRESSIONS IN THIS FILE WILL BE TRIMMED FROM REPORT OUTPUT ##### #JKE 2022-06-06 libpod-.*\.scope: (Succeeded|Consumed) session-.*\.scope: (Succeeded|Consumed)
Von Jeremias Keihsler vor 3 Monaten aktualisiert · 2 Revisionen