Diegiame logwatch i CentOS 7
1. diegiame:
yum -y update yum -y install logwatch
2. Konfigūracinius failus rasite:
/etc/logwatch/conf/logwatch.conf
Pirminis (defaul) konfigūracijos failas:
/usr/share/logwatch/default.conf/logwatch.conf
Rekomenduojama redaguoti ir pildyti lokalų konfigūracinį failą (jei reikia) kuris randasi /etc/logwatch/conf/ aplanke.
Galime perkopijuoti pradines nuostatas be komantarų:
egrep -v '^(;|#|//|$)' /usr/share/logwatch/default.conf/logwatch.conf > /etc/logwatch/conf/logwatch.conf
arba tiesiog kopija:
cp /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/logwatch.conf