Monday, September 8, 2008

How to Setup Central Syslog server in Debian Etch

As it is installed in debian in OS installation.

Step 1: Stop Sysllog server.
/etc/init.d/sysklogd stop

Step 2: Start remote acception
edit /etc/default/syslogd

change SYSLOGD="" to "-r"

Step 3: Create a file to log remote log messages (optional)

edit /etc/sylogd.conf
*.*;auth,authpriv.none to
append at the end the path to file
local0.* -/var/log/sxlog

Step 4: Restart the syslog server
/etc/init.d/sysklogd start

a meesage with "remote reception" by doing tail -f /var/log/messages confirms.

Setp 5: Test by viewing the file
cat /var/log/sxlog

Further info

No comments: