<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 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"Pr\00E9format\00E9 HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PrformatHTMLCar
        {mso-style-name:"Pr\00E9format\00E9 HTML Car";
        mso-style-priority:99;
        mso-style-link:"Pr\00E9format\00E9 HTML";
        font-family:"Courier New";
        mso-fareast-language:FR-CA;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></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="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;background:white">OS: SLes 11 sp4
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;background:white">syslog-ng: syslog-ng-2.0.9-27.34.39.2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;background:white"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">syslog-ng is configured to read from a application log file and then send it to another file in /var/log (tcpdump is not installed, I cant
 install it on a blackbox so this is how I test my config)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">I have the following in my syslog-ng configuration file:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span lang="EN-CA" style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">source ESRS {<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span lang="EN-CA" style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">file(&quot;/opt/esrsve/gateway/xGate.log&quot;);<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">};<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">destination esrsfile{ file(&quot;/var/log/max.log&quot; );};<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">log { source(ESRS);<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">destination(esrsfile);<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EFF0F1"><span lang="EN-CA" style="font-size:10.0pt;font-family:Consolas;color:#242729;border:none windowtext 1.0pt;padding:0cm;background:#EFF0F1;mso-fareast-language:FR-CA">};<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">The problem I am seeing is that when syslog writes to the outputfile (esrsfile) it truncatedthe lines.<o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:14.65pt;background:white"><span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">ex: Source File : [ 0, 6, 1, 1007] 08-29-2016 13:56:28.703 IMPORTANT INFO
 EDDEMC: Data Item::PMStatus&nbsp;<b><span style="border:none windowtext 1.0pt;padding:0cm">Current Value::Offline</span></b><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">And the destination file looiks like this:<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">... ...
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname C<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname u<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname r<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname r<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname e<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname n<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname t<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname V<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname a<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname l<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname u<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname e<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname :<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname O<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname f<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname f<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname l<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname i<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname n<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Aug 29 14:00:02 hostname e<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">... ...<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">What am I doing wrong here?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-CA" style="font-size:11.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#242729;mso-fareast-language:FR-CA">Thanks much!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-CA"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>