Aktionen
Setup logwatch » Historie » Revision 3
« Zurück |
Revision 3/4
(Vergleich)
| Weiter »
Jeremias Keihsler, 08.06.2022 14:42
Install Procedure for logwatch¶
Requirements¶
To install logwatch you will need the following:- a installed and supported operating system (e.g. CentOS 8.x)
- root-access
- a fast internet connection
Preliminary Note¶
Install¶
Install logwatch
:
yum install logwatch
Configure¶
override default output to stdout by
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 mehr als 2 Jahren aktualisiert · 3 Revisionen