sysklogd

install

debian/ubuntu

build from scratch

slackware

that’s built-in already

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

debian/ubuntu

start and enable

systemctl list-unit-files | grep rc-local
vi /etc/rc.local

echo -n syslogd ...
/usr/local/sbin/syslogd -s -m0 && echo done

operations

pgrep -a syslogd

pkill syslogd

slackware

/etc/rc.d/rc.syslog restart

resources

https://github.com/troglobit/sysklogd/tags


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