Operating System - HP-UX
1823714 Members
4087 Online
109664 Solutions
New Discussion юеВ

Forwarding my syslog message to other machine

 
Sirius Black
Regular Advisor

Forwarding my syslog message to other machine

Hi,
I've to forward my syslog message to another machine which is the syslog server.
What I've to do
Thanks Fabrizio
3 REPLIES 3
Jeff Schussele
Honored Contributor

Re: Forwarding my syslog message to other machine

Hi Fabrizio,

This is set up in the /etc/syslog.conf file.
Would be entry(s) like:

*.emerg @syslog_server_name
*.alert @syslog_server_name
*.crit @syslog_server_name

You must insure that port 514/UDP is open between the servers as that's the transport mechanism.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: Forwarding my syslog message to other machine

Make sure that port udp/514 is enabled.
Configure the syslogd.conf to send messages to the syslog server.

*.emerg, *.info @server

Anil
There is no substitute to HARDWORK
Dave Hutton
Honored Contributor

Re: Forwarding my syslog message to other machine

You have to modify the /etc/syslog.conf file. The man page for syslogd gives details on what each field means and different things you can do.

I believe to send all your different levels of alerts to another server you would have a config file that would look like:

*.info @hostname
*.alert @hostname
*.emerg @hostname

Hostname would be your syslog server. I would make a backup of your original syslog.conf file though. I'm not sure if your intention is not to log at all on the server. I would suggest keeping the normal loggin and just adding these as additions.

Kind of like:

*.alert /dev/console
*.alert root
*.alert @hostname
*.emerg *
*.emerg @hostname

Looking at the man page it should still log locally but would also send it your syslog server.