Logging, Syslog and Log Anaylsys Forums
July 30, 2010, 09:56:26 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   WIKI BLOG Help Search Recent Topics GoogleTagged Login Register  
Pages: [1]
  Print  
Author Topic: configuring syslog-ng in relay mode  (Read 1486 times)
badri.avg
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: July 20, 2009, 08:34:29 am »

Hi,

I am having issues in configuring syslog-ng in relay mode. This is my setup

syslog-ng client -> syslog-ng relay -> syslog-ng server
(10.1.2.108)           (10.1.2.1)               (10.1.2.10)

and this is my syslog-ng.conf file on syslog-ng relay machine

options {
                mark_freq(30);
                };
               
                source s_local { unix-stream("/dev/log"); internal(); };
                source s_network { syslog(transport(tcp))};
               
                destination d_syslog_tcp {
                syslog("10.1.2.10" transport("tcp") port(19999)
                );
                };
               
                log { source(s_local); source(s_network);
                      destination(d_syslog_tcp); };


From the above config I can understand that server listens on 19999 port. But on which port relay listens..? My client needs port number also to send the logs to relay which in turn will be sent to server. The default port 514 is closed on relay.
Logged
Admin
Administrator
Newbie
*****
Online Online

Posts: 146


View Profile WWW
« Reply #1 on: July 31, 2009, 03:55:29 pm »

It will default to the "syslog" service - which is UDP port 514.
Logged
Pages: [1]
  Print  

 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!