cancel
Showing results for 
Search instead for 
Did you mean: 

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
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!

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