1752522 Members
4776 Online
108788 Solutions
New Discussion юеВ

remote syslog only

 
SOLVED
Go to solution
v_7
Occasional Advisor

remote syslog only

How can I direct all syslog messages to a remote linux box without receiving any messages in my local /var/log/messages?
4 REPLIES 4
Sergejs Svitnevs
Honored Contributor
Solution

Re: remote syslog only

/etc/syslog.conf

#start
*.* @
#end

This rule would redirect all messages to a remote host with ip=.

Regards,
Sergejs
Umapathy S
Honored Contributor

Re: remote syslog only

You can configure this in /etc/syslog.conf. man syslog.conf for more details.

Edit the /var/log/messages to your favourite location with hostname followed by @.

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Thomas Vollmer
Advisor

Re: remote syslog only

For syslogging, especially over the network, I can recommend syslog-ng. It can use TCP for them and has advanced filter capilities against standard syslog.

Look on http://www.balabit.com/products/syslog_ng/ for it.
v_7
Occasional Advisor

Re: remote syslog only

thanks to all