Operating System - HP-UX
1844163 Members
2532 Online
110229 Solutions
New Discussion

routing syslog to a single log server

 
SOLVED
Go to solution
Donny Jekels
Respected Contributor

routing syslog to a single log server

anyone had to do something like this in the past?

"Vision, is the art of seeing the invisible"
5 REPLIES 5
Cheryl Griffin
Honored Contributor
Solution

Re: routing syslog to a single log server

You would change the /etc/syslog.conf for any line that you want to log elsewhere.
For instance:
local0.* @hostname_here

Stop and restart syslogd when done:
# kill `cat /var/run/syslog.pid`
# /usr/sbin/syslogd -D
Cheryl
"Downtime is a Crime."
Pete Randall
Outstanding Contributor

Re: routing syslog to a single log server

Cheryl Griffin
Honored Contributor

Re: routing syslog to a single log server

# man syslogd
+ A host name preceded by an @ character. Selected messages are forwarded to the syslogd on the named host.
"Downtime is a Crime."
Jeff Schussele
Honored Contributor

Re: routing syslog to a single log server

Hi Donny,

Please note that the logger facility uses port 514/UDP.
If this data has to cross any firewall(s) en-route to the log server, you must insure the FW ruleset(s) will allow this traffic.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Donny Jekels
Respected Contributor

Re: routing syslog to a single log server

thank you.
should be ok from here on. and thanks for the UDP port info, might need it later.
"Vision, is the art of seeing the invisible"