<div dir="ltr"><div><div>Well, older syslog-ng versions probably folowed the file as it was written, and if only a partial line was present, it was assumed to be the entire message.<br><br></div>Maybe the application is writing that file one-character at a time?<br><br></div>But I agree with Peter, 2.0.9 is probably a decade old, so in order to properly support your problems, you should definitely upgrade to something newer.<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-- <br>Bazsi<br></div></div></div>
<br><div class="gmail_quote">On Mon, Aug 29, 2016 at 8:48 PM, Alarie, Maxime <span dir="ltr"><<a href="mailto:Alarie.Maxime@hydro.qc.ca" target="_blank">Alarie.Maxime@hydro.qc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="FR-CA">
<div>
<p class="MsoNormal"><span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729;background:white" lang="EN-CA">OS: SLes 11 sp4
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729;background:white" lang="EN-CA">syslog-ng: syslog-ng-2.0.9-27.34.39.2<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729;background:white" lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Hi,<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-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)<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">I have the following in my syslog-ng configuration file:<u></u><u></u></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" lang="EN-CA">source ESRS {<u></u><u></u></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" lang="EN-CA">file("/opt/esrsve/gateway/<wbr>xGate.log");<u></u><u></u></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">};<u></u><u></u></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"><u></u> <u></u></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">destination esrsfile{ file("/var/log/max.log" );};<u></u><u></u></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"><u></u> <u></u></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"><u></u> <u></u></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"><u></u> <u></u></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">log { source(ESRS);<u></u><u></u></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">destination(esrsfile);<u></u><u></u></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" lang="EN-CA">};<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">The problem I am seeing is that when syslog writes to the outputfile (esrsfile) it truncatedthe lines.<u></u><u></u></span></p>
<p class="MsoNormal" style="line-height:14.65pt;background:white"><span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">ex: Source File : [ 0, 6, 1, 1007] 08-29-2016 13:56:28.703 IMPORTANT INFO
EDDEMC: Data Item::PMStatus <b><span style="border:none windowtext 1.0pt;padding:0cm">Current Value::Offline</span></b><u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">And the destination file looiks like this:<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">... ...
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname C<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname u<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname r<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname r<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname e<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname n<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname t<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname V<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname a<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname l<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname u<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname e<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname :<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname :<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname O<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname f<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname f<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname l<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname i<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname n<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Aug 29 14:00:02 hostname e<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">... ...<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">What am I doing wrong here?<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA"><u></u> <u></u></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#242729" lang="EN-CA">Thanks much!<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-CA"><u></u> <u></u></span></p>
</div>
</div>
<br>______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a><br>
<br>
<br></blockquote></div><br></div>