setting up sysklogd on slackware linux

setup

cd /etc/
mv -i syslog.conf syslog.conf.dist
grep -vE '^#|^$' syslog.conf.dist > syslog.conf.clean
grep -vE '^#|^$' syslog.conf.dist > syslog.conf
vi syslog.conf
*.info;*.!warn;cron.none;mail.none;news.none            -/var/log/messages
*.warn;cron.none;mail.none;news.none                    -/var/log/syslog
*.=debug                                                -/var/log/debug
auth,authpriv.*                                         -/var/log/secure
cron.*                                                  -/var/log/cron
mail.*                                                  -/var/log/maillog
*.emerg                                                 *
rmdir syslog.d/

# slackware
vi /etc/default/syslogd

SYSLOGD_OPTS="-s -m0"

ready to go

/etc/rc.d/rc.syslog restart

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun