Getting Data In

syslog-ng systemctl not starting the service

tthonest
New Member

running CentOS 7

journalctl -fu syslog-ng shows
Unit syslog-ng.service entered failed state.
syslog-ng.service failed.
syslog-ng.service holdoff time over, scheduling restart.
start request repeated too quickly for syslog-ng.service
Failed to start System Logger Daemon.
Unit syslog-ng.service entered failed state.
syslog-ng.service failed.

trying to get Cisco ASA to forward logs over but can't seem to get it to work.

syslog-ng.conf:

# syslog-ng configuration file.
#
#
@include "/opt/syslog-ng/scl.conf"

options {
chain_hostnames(no);
create_dirs (yes);
dir_perm(0755);
dns_cache(yes);
keep_hostname(yes);
log_fifo_size(2048);
log_msg_size(8192);
perm(0644);
time_reopen (10);
use_dns(yes);
use_fqdn(yes);
};

source s_network {
udp(port(514));
};

#Destinations
destination d_cisco_asa { file(“/var/syslog/logs/cisco/asa/$HOST/$YEAR-$MONTH-$DAY-cisco-asa.log” create_dirs(yes)); };

# Filters
filter f_cisco_asa { match(“%ASA” value(“PROGRAM”)) or match(“%ASA” value(“MESSAGE”)); };
filter f_all { not (
filter(f_cisco_asa)
);
};
# Log
log { source(s_network); filter(f_cisco_asa); destination(d_cisco_asa); };
log { source(s_network); filter(f_all); destination(d_all); }
Tags (1)
0 Karma

splunkcol
Builder

Hi, I'm new too, my English is not good so I use the google translator.

I ever presented something similar, and I don't know if it's the same

run the command in linux df -h and see if there is any partition or disk at 100%

0 Karma

datsplunk4272
Explorer

Hi:

I believe, it is not the same. The post has an issue with the 'syslog-ng.service' app that would not be started. 

0 Karma

datsplunk4272
Explorer

Hi:

You can use this cmd follow to see what lines could cost the issue. I used to use to find mine as well. Please let me know your outcome.

[ root@hostname ]# journalctl -a | grep syslog-ng

 

Also, I am concerning this code follow that you might check as well. I will double-check with it as well since I have never used it before.

filter f_all {
not (
filter(f_cisco_asa)
);
};

 

0 Karma

datsplunk4272
Explorer

 

For me, it should work, but could you try this.

 

 filter f_all {
not filter(f_cisco_asa);
};

http://www.softpanorama.org/Logs/Syslog_ng/configuration_examples.shtml

 

0 Karma

dhihoriya_splun
Splunk Employee
Splunk Employee

Hi @tthonest

Try below steps to resolve the issue:

  • Please check whether rsyslog is running on your server, if rsyslog is running you won't be able to start Syslog because by default they are listening on the same port. To disable rsyslog run this command: systemctl disable rsyslog

  • Try running syslog-ng --syntax-only to verify that there are no syntax errors in your config as because if there is any syntax error present on your config file then it will fail to start Syslog and also try to run /usr/sbin/syslog-ng -F -p /var/run/syslogd.pid as it will check customized syslog-ng.conf that there is any typo or syntax error present or not, if there are any errors then you have to fix them and need to restart Syslog.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...