syslog-ng & logrotate Howto (1)
This howto is based on the following documentation:
- Logrotate [EN] @ Gentoo Wiki
- Syslog-ng [EN] @ Gentoo Wiki
Installation
Synchronize the repository and show dependencies:
emaint --auto sync
emerge --update --pretend 'app-admin/logrotate' 'app-admin/syslog-ng'
Install the packages:
emerge --update 'app-admin/logrotate' 'app-admin/syslog-ng'
Configuration
syslog-ng
Edit the following file:
Validate the configuration:
syslog-ng --syntax-only
Start the daemon and check its status:
/etc/init.d/syslog-ng start
/etc/init.d/syslog-ng status
Include the daemon to the start procedure:
rc-update add 'syslog-ng' 'default'
rc-update show | grep 'syslog-ng'
Output:
syslog-ng | default
logrotate
Edit the following files:
Validate the configuration:
logrotate --debug '/etc/logrotate.conf'