<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Microsoft Sans Serif";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.imprintuniqueid, li.imprintuniqueid, div.imprintuniqueid
        {mso-style-name:imprintuniqueid;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="#0563C1" vlink="#954F72"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1f497d">Damien,</span></p><p class="MsoNormal"><span style="color:#1f497d">Ok, I fired it up in the foreground and I got the following results below.  I am noticing filter rule “not match” for f_NAMEOFTHEFIREWALL.   I guess I am misunderstanding this line.   I had set this to the ip address of the firewall.  I believe that variable is using a host ip assignment.  But I am guessing In might need to change NAMEOOFTHEFIREWALL.  Do I need to change NAMEOFTHEFIREWALL to the actual fqdn name?  </span></p><p class="MsoNormal"><span style="color:#1f497d"> -tim</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">syslog-ng starting up; version='3.5.6'</span></p><p class="MsoNormal"><span style="color:#1f497d">Incoming log entry; line='<14>Feb 24 10:36:41 <a href="http://PA-3020.its.beloit.edu">PA-3020.its.beloit.edu</a> 1,2017/02/24 10:36:41,001801001111,CONFIG,0,0,2017/02/24 10:36:41,144.89.x.x,,edit,admin,Web,Succeeded, vsys  vsys1 rulebase security rules  <a href="http://admissions.beloit.edu">admissions.beloit.edu</a>,867,0x0'</span></p><p class="MsoNormal"><span style="color:#1f497d">Filter rule evaluation begins; rule='f_NAMEOFTHEFIREWALL', location='/etc/syslog-ng/conf.d/firewalls.conf:22:29'</span></p><p class="MsoNormal"><span style="color:#1f497d">Filter node evaluation result; result='not-match'</span></p><p class="MsoNormal"><span style="color:#1f497d">Filter rule evaluation result; result='not-match', rule='f_NAMEOFTHEFIREWALL', location='/etc/syslog-ng/conf.d/firewalls.conf:22:29'</span></p><p class="MsoNormal"><span style="color:#1f497d">Incoming log entry; line='<14>Feb 24 10:36:54 <a href="http://PA-3020.its.beloit.edu">PA-3020.its.beloit.edu</a> 1,2017/02/24 10:36:54,001801001111,CONFIG,0,0,2017/02/24 10:36:54,144.89.41.210,,commit,admin,Web,Submitted,,868,0x0'</span></p><p class="MsoNormal"><span style="color:#1f497d">Filter rule evaluation begins; rule='f_NAMEOFTHEFIREWALL', location='/etc/syslog-ng/conf.d/firewalls.conf:22:29'</span></p><p class="MsoNormal"><span style="color:#1f497d">Filter node evaluation result; result='not-match'</span></p><p class="MsoNormal"><span style="color:#1f497d">Filter rule evaluation result; result='not-match', rule='f_NAMEOFTHEFIREWALL', location='/etc/syslog-ng/conf.d/firewalls.conf:22:29'</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Tim</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> syslog-ng [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu">syslog-ng-bounces@lists.balabit.hu</a>] <b>On Behalf Of </b>Damian Bell<br><b>Sent:</b> Friday, February 24, 2017 9:36 AM<br><b>To:</b> <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br><b>Subject:</b> Re: [syslog-ng] Can't get basic syslog to work for my firewall logs?</p></div></div><p class="MsoNormal"> </p><p class="MsoNormal"><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1f497d">Have you disabled any other syslog servers that might be listening on UDP 514? Rsyslog, etc? (ps aux | grep syslog) Try (temporarily) disabling SELINUX and keep firewall turned off. See if you can start syslog-ng in the foreground and see what you get (syslog-ng –Fed)</span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1f497d"> </span></p><p class="MsoNormal"><span lang="EN-GB" style="color:#1f497d"> </span></p><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span></p><table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="100%" style="width:100.0%;border-collapse:collapse"><tr><td style="padding:0in 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt;color:#595959">Damian</span></b><span style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span><b><span style="font-size:10.0pt;color:#595959">Bell</span></b><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br></span><span style="font-size:10.0pt;color:#595959">Infrastructure Engineer | Support | H Clarkson & Co Ltd</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"></span></p></td></tr><tr><td style="padding:0in 0in 0in 0in"><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br></span><span style="font-size:10.0pt;color:#404040">Email: </span><span style="font-size:10.0pt;color:#0070c0"><a href="mailto:Damian.Bell@clarksons.com" title="Click to send email to Damian Bell"><span style="color:#0070c0">Damian.Bell@clarksons.com</span></a></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif"></span></p></td></tr></table><p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"> </span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b>From:</b> syslog-ng [<a href="mailto:syslog-ng-bounces@lists.balabit.hu">mailto:syslog-ng-bounces@lists.balabit.hu</a>] <b>On Behalf Of </b>Tim Tyler<br><b>Sent:</b> 24 February 2017 15:07<br><b>To:</b> <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu</a><br><b>Subject:</b> [syslog-ng] Can't get basic syslog to work for my firewall logs?</p></div></div><p class="MsoNormal"><span lang="EN-GB"> </span></p><p class="MsoNormal">Syslog-ng experts.</p><p class="MsoNormal">  I am very new to syslog-ng.  I installed syslog-ng on a fresh Redhat 7.3 server.   It defaults working with internal logging.  So I configured my firewall to send syslog with facility set to log_user.  I turned on Wireshark on the syslog-ng server and observed the firewall sending traffic to the server on udp 514.  </p><p class="MsoNormal"> </p><p class="MsoNormal">But the syslog server never created the directory structure and logs.  I disabled the redhat firewall just to eliminate it as a possibility.  Still no logging.  So I don’t know what I am doing wrong at this point. I don’t know if this is a permission problem or some other configuration issue.  I found someone that had posted a very basic syslog-ng configuration for firewalls.  So I copied It into a firewall.conf I put in conf.d.  Can anyone see what might be wrong with it?</p><p class="MsoNormal"> </p><p class="MsoNormal">####################</p><p class="MsoNormal">options {</p><p class="MsoNormal">        create_dirs(yes);</p><p class="MsoNormal">        owner(root);</p><p class="MsoNormal">        group(root);</p><p class="MsoNormal">        perm(0640);</p><p class="MsoNormal">        dir_owner(root);</p><p class="MsoNormal">        dir_group(root);</p><p class="MsoNormal">        dir_perm(0750);</p><p class="MsoNormal">};</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">##################################################</p><p class="MsoNormal">source s_udp {</p><p class="MsoNormal">        udp(port(514));</p><p class="MsoNormal">};</p><p class="MsoNormal"> </p><p class="MsoNormal">#Template for a new firewall in the firewalls.conf file</p><p class="MsoNormal">#Entries to be changed: NAMEOFTHEFIREWALL and IPOFTHEFIREWALL</p><p class="MsoNormal"> </p><p class="MsoNormal">##################################################</p><p class="MsoNormal">filter f_NAMEOFTHEFIREWALL {</p><p class="MsoNormal">        host("192.168.30.1");</p><p class="MsoNormal">};</p><p class="MsoNormal">destination d_NAMEOFTHEFIREWALL {</p><p class="MsoNormal">        file("/var/log/firewalls/PA/$YEAR/$MONTH/$YEAR-$MONTH-$DAY.PA.log");</p><p class="MsoNormal">};</p><p class="MsoNormal">log {</p><p class="MsoNormal">        source(s_udp);</p><p class="MsoNormal">        filter(f_NAMEOFTHEFIREWALL);</p><p class="MsoNormal">        destination(d_NAMEOFTHEFIREWALL);</p><p class="MsoNormal">};</p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">Tim Tyler</p><p class="MsoNormal">Network Engineer</p><p class="MsoNormal">Beloit College</p><p class="MsoNormal"> </p><div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Times New Roman",serif"><hr size="2" width="100%" align="center"></span></div><p class="MsoNormal"><span lang="EN-GB" style="font-size:7.5pt;font-family:"Microsoft Sans Serif",sans-serif">This message is private and confidential. If you have received it in error, you are on notice of its status. Please notify us immediately by reply email and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person: to do so could be a breach of confidence.<br><br>Emails may be monitored.<br><br>Details of Clarkson group companies and their regulators (where applicable) can be found at this url: </span><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"><a href="http://www.clarksons.com/disclosure/" title="Disclosure"><span style="font-size:7.5pt;font-family:"Microsoft Sans Serif",sans-serif">Disclosure</span></a> </span></p><div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-GB" style="font-size:12.0pt;font-family:"Times New Roman",serif"><hr size="2" width="100%" align="center"></span></div></div></body></html>