Gentoo Logging

May 15, 2026

Now that /var is on a separate filesystem, not routinely being backed up, and that we have cron installed, we can move on to installing our system logger.

emerge -av syslog-ng logrotate
/etc/init.d/syslog-ng start
rc-update add syslog-ng default

That's it. We can tweak it later.

For a hardened configuration:

pushd /usr/share/doc/syslog-ng-3.34.1/
bunzip2 *.bz2
cp syslog-ng.conf.gentoo.hardened /etc/syslog-ng/syslog-ng.conf
/etc/init.d/syslog-ng restart
popd