1833903 Members
1922 Online
110063 Solutions
New Discussion

syslog to remote host

 
SOLVED
Go to solution
Petra Sandberg
Advisor

syslog to remote host

Hi!

I'm trying to set up a syslog notice to a remote host through a firewall and now I'm stucked. The server on the other side of the firewall is configured to reseve messages from my host.

syslog.conf

local2.notice @

and then I run

logger -p local2.notice "test_message"

Have I missed something
3 REPLIES 3
Eugen Cocalea
Respected Contributor
Solution

Re: syslog to remote host

Hi,

Make sure the firewall allows port 514/udp through it. The port is used by syslog for remote logging.

Also make sure your DNS is working well and the local machine resolves the name of the remote machine, or, use the ip address in /etc/syslog.conf

E.
To Live Is To Learn
Rob Galloway_1
Frequent Advisor

Re: syslog to remote host

Have you sent a HUP to your syslogd to make it reread its syslog.conf file?

if not send a HUP to the process

kill -HUP `cat /var/run/syslog.pid`

should do the trick.

Hope this helps.
Experience is a hard teacher. It tests first and teaches afterward.
Petra Sandberg
Advisor

Re: syslog to remote host

Thanks Eugen, it was a DNS problem, the case is solved.