setting up sysklogd

casual setupcasual setup

defaults differ on debian vs slackware, it’s better to keep those – this is just a clean-up

mv -i syslog.conf syslog.conf.dist
grep -vE '^#|^$' syslog.conf.dist > syslog.conf.clean
grep -vE '^#|^$' syslog.conf.dist > syslog.conf

run-time setuprun-time setup

for both debian and slackware

vi /etc/default/syslogd

SYSLOGD_OPTS="-s -m0"
# -4 -n -T

ready to goready to go

debian/ubuntu

systemctl daemon-reload
systemctl list-unit-files | grep syslogd
systemctl enable syslogd --now
systemctl status syslogd

slackware

ls -lF /etc/rc.d/rc.syslog
/etc/rc.d/rc.syslog restart

rc-local

vi /etc/rc.local

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

operationsoperations

status

pgrep -a syslogd

stop

pkill syslogd

additional notesadditional notes

for some other purpose e.g. without -s, we are listening!

SYSLOGD_OPTS="-4 -m0 -c -b 0.0.0.0:5140"

resourcesresources

https://man.troglobit.com/man8/syslogd.8.html

https://man.troglobit.com/man5/syslog.conf.5.html

https://wiki.gentoo.org/wiki/Sysklogd


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT