Last active
February 26, 2019 10:09
-
-
Save idefux/4b8daaf04bf27268b770 to your computer and use it in GitHub Desktop.
dd-wrt local AND remote syslog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd-wrt supports remote and local syslog at the same time | |
However this is not supported by the GUI | |
You need to invoke syslogd as follows: | |
~#: syslogd -L -R <host-ip>[:<port>] | |
You can further adopt this e.g. | |
~#: syslogd -L -b 5 -s 2000 -R xxx.xxx.xxx.xxx:xxx | |
You can run this script at startup to kill the system started syslog (either syslogd -L or syslogd -R ....) | |
and start it with your arguments: | |
sleep 2 | |
killall syslogd | |
/sbin/syslogd -b 5 -s 2000 -L -R xxx.xxx.xxx.xxx:xxx | |
dd-wrt trac marks this as resolved by changeset 23625 (http://svn.dd-wrt.com/changeset/23625) | |
I tested this on a rather old SVN revision 18024 and it works | |
Output of syslogd --help (taken from https://www.dd-wrt.com/phpBB2/viewtopic.php?p=713411 | |
since my router does not support this) | |
root@dd-wrt:~# syslogd --help | |
BusyBox v1.13.4 (2010-08-12 10:32:23 CEST) multi-call binary | |
Usage: syslogd [OPTION]... | |
System logging utility. | |
Note that this version of syslogd ignores /etc/syslog.conf. | |
Options: | |
-n Run in foreground | |
-O FILE Log to given file (default=/var/log/messages) | |
-l n Set local log level | |
-S Smaller logging output | |
-s SIZE Max size (KB) before rotate (default=200KB, 0=off) | |
-b NUM Number of rotated logs to keep (default=1, max=99, 0=purge) | |
-R HOST[:PORT] Log to IP or hostname on PORT (default PORT=514/UDP) | |
-L Log locally and via network (default is network only if -R) | |
-C[size(KiB)] Log to shared mem buffer (read it using logread) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment