Setting up a syslog service


My wifi Access Point can send logs to a syslog service. So I decided to set up such a service. This turned out to be very easy.

Edit /etc/sysconfig/syslog and set:

SYSLOGD_OPTIONS="-m 0 -r"

Restart the syslogd daemon.

You now need to open the port 514/udp or allow connection from the access point. For instance:

/sbin/iptables -I INPUT -s 192.168.0.50 -j ACCEPT

The service is up a running and can receive logs:

Nov 25 21:11:19 192.168.0.50 syslogd started: BusyBox v1.00-pre8 (2004.12.08-10:02+0000)
Nov 25 21:11:24 192.168.0.50 klogd: klogd started: BusyBox v1.00-pre8 (2004.12.08-10:02+0000)
Nov 25 21:11:29 192.168.0.50 klogd: br0: port 1(eth0) entering disabled state
Nov 25 21:11:35 192.168.0.50 klogd: br0: port 2(wlan0) entering disabled state
Nov 25 21:11:40 192.168.0.50 klogd: device wlan0 left promiscuous mode
Nov 25 21:11:45 192.168.0.50 klogd: br0: port 1(eth0) entering disabled state
Nov 25 21:11:49 192.168.0.50 klogd: device eth0 left promiscuous mode
Nov 25 21:11:54 192.168.0.50 klogd: device eth0 entered promiscuous mode
This entry was posted in Informatique, mandriva and tagged , , . Bookmark the permalink.

Comments are closed.