<div dir="auto">Tcpdump shows data that is later dropped by the packet filter, so make sure that iptables lets the packets through.<div dir="auto"><br></div><div dir="auto">Another potential culprit is selinux, check for violations in the kernel log.</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 30, 2020, 16:20 Rose, Ed <<a href="mailto:Ed_Rose@mentor.com">Ed_Rose@mentor.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-3370610268812288973WordSection1">
<p class="MsoNormal">Hello All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have syslog-ng setup currently setup to write to disk and forward events on to a different syslog server. Syslog isn’t writing to disk it seems. I do not see any errors either, unless I am not looking in the right place for the errors.
Tcpdump –v host x.x.x.x shows data coming in from the host but a tail –f ${HOST}/log_${HOST} shows no logs going to disk.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Ed<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">syslog-ng 3 (3.14.1)<u></u><u></u></p>
<p class="MsoNormal">Config version: 3.14<u></u><u></u></p>
<p class="MsoNormal">Installer-Version: 3.14.1<u></u><u></u></p>
<p class="MsoNormal">Revision:<u></u><u></u></p>
<p class="MsoNormal">Module-Directory: /usr/lib64/syslog-ng<u></u><u></u></p>
<p class="MsoNormal">Module-Path: /usr/lib64/syslog-ng<u></u><u></u></p>
<p class="MsoNormal">Available-Modules: afmongodb,sdjournal,linux-kmsg-format,appmodel,date,pseudofile,afamqp,syslogformat,csvparser,cef,tags-parser,affile,afsocket,afstomp,tfgetent,json-plugin,confgen,system-source,stardate,graphite,dbparser,afprog,xml,add-contextual-data,snmptrapd-parser,cryptofuncs,kvformat,disk-buffer,basicfuncs,afuser,map-value-pairs<u></u><u></u></p>
<p class="MsoNormal">Enable-Debug: off<u></u><u></u></p>
<p class="MsoNormal">Enable-GProf: off<u></u><u></u></p>
<p class="MsoNormal">Enable-Memtrace: off<u></u><u></u></p>
<p class="MsoNormal">Enable-IPv6: on<u></u><u></u></p>
<p class="MsoNormal">Enable-Spoof-Source: on<u></u><u></u></p>
<p class="MsoNormal">Enable-TCP-Wrapper: on<u></u><u></u></p>
<p class="MsoNormal">Enable-Linux-Caps: on<u></u><u></u></p>
<p class="MsoNormal">Enable-Systemd: on<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">filter f_awanra1 { host("x.x.x.x"); };<u></u><u></u></p>
<p class="MsoNormal">filter f_bwanra1 { host("x.x.x.x"); };<u></u><u></u></p>
<p class="MsoNormal">filter f_cwanra1 { host("x.x.x.x"); };<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">destination d_ciscoasa { file("/var/log2/gns/cisco_asa/${HOST}/log_${HOST}" create-dirs(yes) dir-perm(0755) dir-group(splunk) perm(0640) group(splunk)); };<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">destination d_uid1 { tcp("x.x.x.x" port(514) ); };<u></u><u></u></p>
<p class="MsoNormal">destination d_uid2 { tcp("x.x.x.x" port(514) ); };<u></u><u></u></p>
<p class="MsoNormal">destination d_uid3 { tcp("x.x.x.x" port(514) ); };<u></u><u></u></p>
<p class="MsoNormal">destination d_uid4 { tcp("x.x.x.x" port(514) ); };<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">log { source(s_net); filter(f_amywanra1); destination(d_ciscoasa); destination(d_uid1); destination(d_uid2); destination(d_uid3); destination(d_uid4); flags(final); };<u></u><u></u></p>
<p class="MsoNormal">log { source(s_net); filter(f_cnswanra1); destination(d_ciscoasa); destination(d_uid1); destination(d_uid2); destination(d_uid3); destination(d_uid4); flags(final); };<u></u><u></u></p>
<p class="MsoNormal">log { source(s_net); filter(f_demwanra1); destination(d_ciscoasa); destination(d_uid1); destination(d_uid2); destination(d_uid3); destination(d_uid4); flags(final); };<u></u><u></u></p>
</div>
</div>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>