PDA

Bekijk de volledige versie : setup for Oleg's 1.9.2.7-8 firmware with remote syslog



tomh65
22-01-2008, 22:20
Please does anyone know the setup for a syslog configuration with Oleg's firmware when it has to receive messages from remote clients.

avberk
23-01-2008, 15:29
check this link:

http://www.nslu2-linux.org/wiki/Optware/Syslog-ng

Open '/opt/etc/syslog-ng/syslog-ng.conf' and add this line at the bottom:

log { source(net); destination(xxxlog); };


and something like this at the top:

destination xxxlog { file("/opt/share/data/xxx.log" template("$ISODATE $FULLHOST $MESSAGE\n") ); };

I am using an older version of syslog-ng, thus i am not sure if the syntax is still the same...

tomh65
23-01-2008, 15:43
check this link:

http://www.nslu2-linux.org/wiki/Optware/Syslog-ng

Open '/opt/etc/syslog-ng/syslog-ng.conf' and add this line at the bottom:

log { source(net); destination(xxxlog); };


and something like this at the top:

destination xxxlog { file("/opt/share/data/xxx.log" template("$ISODATE $FULLHOST $MESSAGE\n") ); };

I am using an older version of syslog-ng, thus i am not sure if the syntax is still the same...
At this moment I''ll use the busybox syslogd. So I'll think this syslog-ng setting does not work. Is syslog-ng even a better solution?