<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.msipfooterd9b5198, li.msipfooterd9b5198, div.msipfooterd9b5198
{mso-style-name:msipfooterd9b5198;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.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;}
/* List Definitions */
@list l0
{mso-list-id:2029060272;
mso-list-type:hybrid;
mso-list-template-ids:2021972376 134807567 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><b>Hi Team,<o:p></o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal"><b><o:p> </o:p></b></p>
<p class="MsoNormal"><b>I am trying to configure syslog-ng in one our linux instance to get NGIPS/FMC data via udp connection on its default port (514). I have configured syslog-ng.conf under /etc/syslog-ng and then we have set SE Linux as Permissive. I am
using RHEL 8.7 and syslog version 4.0. Apparently all looked good to me however while checking in the destination path that is mentioned I don’t see any directory or logfile from for the said udp connection got created.
<o:p></o:p></b></p>
<p class="MsoNormal"><b>Below is our observation and steps that we executed, can any of you please help me telling where I went wrong or if I am missing something, there is another testing in pipeline that is stalled for this –
<o:p></o:p></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Define source, destination and log_file in syslog-ng.conf (file attached).<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Run the below SELinux command –<o:p></o:p></li></ol>
<p class="MsoListParagraph"># ausearch -c 'syslog-ng' --raw | audit2allow -M my-syslogng<br>
# semodule -X 300 -i my-syslogng.pp<o:p></o:p></p>
<ol style="margin-top:0in" start="3" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Restart syslog-ng service –<o:p></o:p></li></ol>
<p class="MsoListParagraph"># systemctl restart syslog-ng.service (no error message received)<o:p></o:p></p>
<ol style="margin-top:0in" start="4" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Check if the service is running –
<o:p></o:p></li></ol>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph"><img width="778" height="247" style="width:8.1041in;height:2.5729in" id="Picture_x0020_1" src="cid:image002.png@01D99309.5147A9A0"><o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<ol style="margin-top:0in" start="5" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Check if syslog-ng is listening to udp port 514 –
<o:p></o:p></li></ol>
<p class="MsoListParagraph"><img width="799" height="57" style="width:8.3229in;height:.5937in" id="Picture_x0020_3" src="cid:image003.png@01D99309.5147A9A0"><o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<ol style="margin-top:0in" start="6" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Checked and we have incoming data stream from source using the below command –
<o:p></o:p></li></ol>
<p class="MsoListParagraph"><b>tcpdump -i any -c10 -nn -A port 514<o:p></o:p></b></p>
<p class="MsoListParagraph"><b><o:p> </o:p></b></p>
<ol style="margin-top:0in" start="7" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">I have went through the syslog-ng troubleshooting steps mentioned in the link –
<o:p></o:p></li></ol>
<p class="MsoListParagraph"><a href="https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide/105#TOPIC-1829320">https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.37/administration-guide/105#TOPIC-1829320</a><o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph"><img border="0" width="561" height="37" style="width:5.8437in;height:.3854in" id="Picture_x0020_4" src="cid:image004.png@01D9930B.D0B70940"><o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph"><b>syslog-ng -Fdev command output is also attached.<o:p></o:p></b></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<ol style="margin-top:0in" start="8" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">While running the following command got the below output -
<b># watch '/usr/sbin/syslog-ng-ctl stats | grep "^center"'<o:p></o:p></b></li></ol>
<p class="MsoListParagraph"><img border="0" width="1364" height="138" style="width:14.2083in;height:1.4375in" id="Picture_x0020_5" src="cid:image005.png@01D99311.15E497D0"><b><o:p></o:p></b></p>
<p class="MsoListParagraph"><b><o:p> </o:p></b></p>
<ol style="margin-top:0in" start="9" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1"><b># journaltctl command output (first 500 lines) attached<o:p></o:p></b></li></ol>
<p class="MsoListParagraph"><b><o:p> </o:p></b></p>
<ol style="margin-top:0in" start="10" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Current SE Linux status :<b><o:p></o:p></b></li></ol>
<p class="MsoNormal" style="margin-left:.5in"><img border="0" width="389" height="183" style="width:4.052in;height:1.9062in" id="Picture_x0020_6" src="cid:image006.png@01D9931C.B8765370"><b><o:p></o:p></b></p>
<p class="MsoNormal" style="margin-left:.5in"><b><o:p> </o:p></b></p>
<ol style="margin-top:0in" start="11" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">Our syslog-ng is logging to /var/log/messages and we are getting this message in /var/log/messages –
<b><o:p></o:p></b></li></ol>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph"><img border="0" width="1362" height="558" style="width:14.1875in;height:5.8125in" id="Picture_x0020_7" src="cid:image007.png@01D9931E.592725A0"><b><o:p></o:p></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Thanks & Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;mso-fareast-language:EN-GB">Sumanta Banerjee<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Splunk Admin | CISO | Aviva Group<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Tel: +91-8420892593<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">24x7x365: +44 1603 208 582<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><a href="mailto:sumanta.banerjee@aviva.com">sumanta.banerjee@aviva.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><a href="mailto:GlobalCyberSecurityEngineeringTeam@aviva.com">GlobalCyberSecurityEngineeringTeam@aviva.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><a href="http://www.aviva.com">www.aviva.com</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Wipro Technologies - SJP2, Bangalore, India<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black;mso-fareast-language:EN-GB"><img border="0" width="201" height="54" style="width:2.0937in;height:.5625in" id="Picture_x0020_2" src="cid:image001.gif@01D99303.20AF3AC0"></span><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="msipfooterd9b5198" style="margin:0in"><span style="font-size:8.0pt;color:blue">Aviva: Internal</span><o:p></o:p></p>
</div>
<br clear="both">
Aviva plc, registered Office: St. Helen's, 1 Undershaft, London EC3P 3DQ. Registered in England No. 02468686. www.aviva.com<BR>
<BR>
This message and any attachments may be confidential or legally privileged. If you are not the intended recipient, please telephone or e-mail the sender and delete this message and any attachments from your system. Also, if you are not the intended recipient you must not copy this message or attachments or disclose the contents to any other person. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Aviva.<BR>
</body>
</html>