tinydns and logwatch
There are no translations available.
This page is written to explain how to integrate logwatch and tinydns, a component of djbdns.
First, download the logwatch script to your server:
cd /usr/share/logwatch/scripts/services/
wget http://www.cypress-systems.net/scripts/tinydns
chmod 755 tinydns
Second, edit the script to tell logwatch where the logfile is looking for
vim /usr/share/logwatch/default.conf/services/tinydns.conf
| Title = “tinydns” LogFile = tinydns # vi: shiftwidth=3 tabstop=3 et |
Third, tell logwatch where the logs are exactly stored
vim /usr/share/logwatch/default.conf/logfiles/tinydns.conf
| LogFile = /service/tinydns/log/main/@*.s LogFile = /service/tinydns/log/main/current # Keep only the lines in the proper date range… *applytaidate # vi: shiftwidth=3 tabstop=3 et |
Four, run a test to see if there is any output
logwatch –service tinydns –range today –detail 10 –output stdout