December 19, 201312 yr Looking for some way of getting my routers syslog output to go to my unraid server. Is there a syslog plugin or similar so i can gather my routers syslog output? Thanks
December 19, 201312 yr usage: syslogd [-drvh] [-l hostlist] [-m markinterval] [-n] [-p path] [-s domainlist] [-f conffile] -r This option will enable the facility to receive message from the network using an internet domain socket with the syslog service (see services(5)). The default is to not receive any messages from the network. I think you just need to restart syslogd with the -r option to allow capture of the messages on the network. Then direct your router's syslog events to unRAID. I used to do this a while back. You may need to configure unRAID with a static IP either by router's DHCP table or in unRAID itself. look at /etc/rc.d/rc.syslog. a sed script could probably be devised to edit the syslogd line and append the -r here's my quick example and screen captures. root@unRAID:~# sed -i.bak -e 's#/usr/sbin/syslogd -m0#/usr/sbin/syslogd -m0 -r#g' /etc/rc.d/rc.syslog root@unRAID:~# diff /etc/rc.d/rc.syslog /etc/rc.d/rc.syslog.bak root@unRAID:~# diff -u /etc/rc.d/rc.syslog /etc/rc.d/rc.syslog.bak --- /etc/rc.d/rc.syslog 2013-12-19 10:04:34.906850060 -0500 +++ /etc/rc.d/rc.syslog.bak 2013-08-28 13:46:33.000000000 -0400 @@ -6,8 +6,8 @@ syslogd_start() { if [ -x /usr/sbin/syslogd -a -x /usr/sbin/klogd ]; then echo -n "Starting sysklogd daemons: " - echo -n "/usr/sbin/syslogd -m0 -r " - /usr/sbin/syslogd -m0 -r + echo -n "/usr/sbin/syslogd -m0 " + /usr/sbin/syslogd -m0 # prevent syslogd/klogd race condition on SMP kernels if ps acx | grep -q udevd ; then while [ ! -e /dev/log ] ; do root@unRAID:~# /etc/rc.d/rc.syslog restart Starting sysklogd daemons: /usr/sbin/syslogd -m0 -r /usr/sbin/klogd -c 3 -x root@unRAID:~# ps -ef | grep syslogd root 11962 1 0 10:05 ? 00:00:00 /usr/sbin/syslogd -m0 -r root 11968 11943 0 10:05 pts/0 00:00:00 grep syslogd There will be issues to consider, such as space requirements for a growing log. I'll leave these up to the end user. FWIW, you can expand the /var/log directory's footprint in ram on the fly. root@unRAID:~# df | grep var/log tmpfs 131072 1564 129508 2% /var/log root@unRAID:~# mount -o remount,size=256M tmpfs /var/log root@unRAID:~# df | grep var/log tmpfs 262144 1564 260580 1% /var/log root@unRAID:~# mount -o remount,size=128M tmpfs /var/log root@unRAID:~# df | grep var/log tmpfs 131072 1564 129508 2% /var/log [/code
Archived
This topic is now archived and is closed to further replies.