Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: RuudH on April 23, 2007, 03:51:09 PM

Title: how to send syslog to remote server
Post by: RuudH on April 23, 2007, 03:51:09 PM
Hello all,

I've just setup a SME 7.1 server and I like this server to be managed by my management server.
Question is: how can I forward the syslog messages to my management server ?

Just a newbie on linux ....

thanks in advance
Title: how to send syslog to remote server
Post by: mmccarn on April 24, 2007, 01:37:42 PM
syslog is controlled by /etc/syslog.conf which SME creates from the templates in /etc/e-smith/templates/etc/syslog.conf/*

To customize /etc/syslog.conf:mkdir -p /etc/e-smith/templates-custom/etc/syslog.conf)
* customize them
* recreate syslog.conf using expand-template /etc/syslog.conf
* restart syslogd using /etc/init.d/syslog restart[/list]

So, if you want everything that now goes to /var/log/messages to go to your logging server, create a custom copy of 00filenames and change the value of $messages.  On the other hand, if you only want "auth" messages to go to  your logging server, customize auth.

Warning: I have no idea what impact these changes will have on the security or performance of your SME server.

Of course you'll need to configure your logging server to accept logs from remote hosts, plus, many SME processes use multilog instead of syslog so you may not get the data you want from syslog.