UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » Networking
  • » Unable to specify remote syslog server with port on Linux client

#1 2014-12-03 12:52 PM

santoshkumar
Member
Registered: 2007-08-21
Posts: 53

Unable to specify remote syslog server with port on Linux client

Hi

configuring /etc/syslog.conf to send all syslog messages to remote syslog server running on non default port is not working.

*.*                          @10.102.77.118:514

I also verified from tcpdump didn't see any syslog messages sent


Whereas , It works well on  "*.*                 @10.102.77.118 "

Went through etc/syslog.conf man page also.

Request for your help, Am i missing some configuration?

Offline

#2 2014-12-03 09:48 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: Unable to specify remote syslog server with port on Linux client

It probably depends on what distro and specific syslogd version you're using, but yeah on my system (CentOS5) it sure looks like there's no support at all for alternate UDP ports...  It says in the man page it only uses the "/etc/services" entry for "syslog" to determine the port to both listen on and send to...  So, I guess you could kluge around the issue by modifying that file to reflect the port# you want it to use...

Offline

#3 2014-12-06 01:10 PM

santoshkumar
Member
Registered: 2007-08-21
Posts: 53

Re: Unable to specify remote syslog server with port on Linux client

syslog version is of syslogd 1.4.1
yes the host is centos5

Offline

#4 2014-12-06 03:36 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: Unable to specify remote syslog server with port on Linux client

Yeah, then short of hacking the code yourself or porting a replacement syslogd with alternate port support, I think your only real option is the "/etc/services" kluge I mentioned...

Offline

#5 2015-01-06 07:08 AM

santoshkumar
Member
Registered: 2007-08-21
Posts: 53

Re: Unable to specify remote syslog server with port on Linux client

Issue is solved after updating to rsyslogd

Offline

  • Index
  • » Networking
  • » Unable to specify remote syslog server with port on Linux client

Board footer

Powered by FluxBB