syslog-ng port is not listening on relay host

Q & ACategory: Questionssyslog-ng port is not listening on relay host
sudhesh asked 4 weeks ago

Hi All,
           I have installed my syslog-ng on my relay server. Now i wanted to have a TLS based communication b/w client and the relay server. I have configured the self signed certificate and assigned the port 6514 for TLS communication. Now after starting the syslog-ng service the port 6514 is not listening. Can someone confirm if the configuration is correct? If someone could share me the doc for 3.9 version for configuring client that would be great.Thank you!
 
 
options {
flush_lines (0);
time_reopen (10);
log_fifo_size (1000);
chain_hostnames (off);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (yes);
};
source s_sys {
system();
internal();
# udp(ip(0.0.0.0) port(514));
};

# Source TLS 6514
source s_tls {
network(
ip(0.0.0.0)
port(6514)
transport(“tls”)
tls(
key-file(“/opt/certs/myserver.key”)
cert-file(“/opt/certs/myserver.crt”)
peer-verify(optional-untrusted)
)
);
};
#Logs
#log { source(s_sys); filter(f_kernel); destination(d_cons); };
#log { source(s_sys); destination(d_all); };
##log { source(s_network); destination(d_all); flags(flow-control); };
#log { source(s_network); destination(d_ad_slog); };
#log { source(s_tls); destination(d_all); flags(flow-control); };
#log { source(s_tls); destination(d_ad_slog); };
#log { source(s_network); destination(d_ad_slog); };
#log { source(s_sys); destination(d_ad_slog); };
# Source additional configuration files (.conf extension only)
@include “/etc/syslog-ng/conf.d/*.conf”

1 Answers
Kokan answered 4 weeks ago

Hello,
You should have a logpath configured with that source. All of your logpaths are commented out.

#log { source(s_sys); filter(f_kernel); destination(d_cons); };
#log { source(s_sys); destination(d_all); };
##log { source(s_network); destination(d_all); flags(flow-control); };
#log { source(s_network); destination(d_ad_slog); };
#log { source(s_tls); destination(d_all); flags(flow-control); };
#log { source(s_tls); destination(d_ad_slog); };
#log { source(s_network); destination(d_ad_slog); };
#log { source(s_sys); destination(d_ad_slog); };

The syslog-ng 3.9 admin guide:
https://www.balabit.com/documents/syslog-ng-ose-3.9-guides/en/syslog-ng-ose-guide-admin/html-single/index.html