<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Laszlo,
<div>Though wouldn't the date/timestamp on the file be updated as the data is flowing through the pipe.</div>
<div><br>
</div>
<div>Thanks</div>
<div>Jitesh<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF122433" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> syslog-ng [syslog-ng-bounces@lists.balabit.hu] on behalf of László Várady [laszlo.varady@balabit.com]<br>
<b>Sent:</b> Friday, October 27, 2017 11:27 AM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list<br>
<b>Subject:</b> Re: [syslog-ng] [Non-DoD Source] Re: Syslog 3.5 (pipe file issue)<br>
</font><br>
</div>
<div></div>
<div>All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.
<br>
<br>
<hr>
<br>
<br>
<div dir="ltr">Hi,
<div><br>
</div>
<div>As Laci pointed out, this is an expected behavior.</div>
<div>Named pipes are not regular files, the "file size" is always 0 byte.</div>
<div><br>
</div>
<div>From Caution-https://linux.die.net/man/4/fifo < Caution-https://linux.die.net/man/4/fifo > :</div>
<div><i>When processes are exchanging data via the FIFO, the kernel passes all data internally without writing it to the file system.</i></div>
<div><br>
</div>
<div>If you are interested in the capacity of named pipes, you can read about this here:</div>
<div>Caution-https://linux.die.net/man/7/pipe < Caution-https://linux.die.net/man/7/pipe >  (Chapter name: Pipe capacity)<br>
</div>
<div><br>
</div>
<div>--</div>
<div>László Várady</div>
<div dir="ltr"><br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Oct 27, 2017 at 4:56 PM Amin, Jitesh CTR (US) <jitesh.amin.ctr@mail.mil < Caution-mailto:jitesh.amin.ctr@mail.mil > > wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi Laci,
<div>So we can create named pipe object with filename successfully.</div>
<div><br>
</div>
<div>But the then the file always shows 0 bytes in size even after data is being written to this file. Additionally the timestamp on this file never changes (as new data get's written and so I would assume that modify date on file would also be updated).</div>
<div><br>
</div>
<div>Thanks</div>
<div>Jitesh<br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr>
<div id="m_2442931521500850090m_-9111524537336605818divRpF399686" style="direction:ltr">
<font face="Tahoma" size="2" color="#000000"><b>From:</b> syslog-ng [syslog-ng-bounces@lists.balabit.hu < Caution-mailto:syslog-ng-bounces@lists.balabit.hu > ] on behalf of Szemere, László [laszlo.szemere@balabit.com < Caution-mailto:laszlo.szemere@balabit.com > ]<br>
<b>Sent:</b> Friday, October 27, 2017 9:46 AM<br>
<b>To:</b> Syslog-ng users' and developers' mailing list<br>
<b>Subject:</b> [Non-DoD Source] Re: [syslog-ng] Syslog 3.5 (pipe file issue)<br>
</font><br>
</div>
<div></div>
<div>All active links contained in this email were disabled. Please verify the identity of the sender, and confirm the authenticity of all links contained within the message prior to copying and pasting the address to a Web browser.<br>
<br>
<hr>
<br>
<br>
<div dir="ltr">Hello Jitesh,
<div><br>
</div>
<div> I am afraid I can not clearly understand your problem. Since OSE 3.0.2, a named pipe destination creates a new pipe object automatically with the predefined filename. (Caution-Caution-https://www.balabit.com/documents/syslog-ng-ose-3.11-guides/en/syslog-ng-ose-guide-admin/html-single/index.html#configuring-destinations-pipe < Caution-https://www.balabit.com/documents/syslog-ng-ose-3.11-guides/en/syslog-ng-ose-guide-admin/html-single/index.html#configuring-destinations-pipe >  < Caution-Caution-https://www.balabit.com/documents/syslog-ng-ose-3.11-guides/en/syslog-ng-ose-guide-admin/html-single/index.html#configuring-destinations-pipe < Caution-https://www.balabit.com/documents/syslog-ng-ose-3.11-guides/en/syslog-ng-ose-guide-admin/html-single/index.html#configuring-destinations-pipe >  > )</div>
<div><br>
</div>
<div> For me, this is the expected behavior of named pipes (man page: Caution-Caution-http://man7.org/linux/man-pages/man1/mkfifo.1.html < Caution-http://man7.org/linux/man-pages/man1/mkfifo.1.html >  < Caution-Caution-http://man7.org/linux/man-pages/man1/mkfifo.1.html < Caution-http://man7.org/linux/man-pages/man1/mkfifo.1.html >  > 
 further information on level 3: Caution-Caution-http://man7.org/linux/man-pages/man3/mkfifo.3.html < Caution-http://man7.org/linux/man-pages/man3/mkfifo.3.html >  < Caution-Caution-http://man7.org/linux/man-pages/man3/mkfifo.3.html < Caution-http://man7.org/linux/man-pages/man3/mkfifo.3.html >  > ).
 Please try to rephrase your question, to give us more understanding about your use case.<br>
</div>
<div><br>
</div>
<div>Br,</div>
<div>Laci</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div>
<div class="gmail_extra">
<div class="gmail_quote">On Fri, Oct 27, 2017 at 2:42 PM, Amin, Jitesh CTR (US) <span dir="ltr">
<jitesh.amin.ctr@mail.mil < Caution-mailto:jitesh.amin.ctr@mail.mil >  < Caution-Caution-mailto:jitesh.amin.ctr@mail.mil < Caution-mailto:jitesh.amin.ctr@mail.mil >  > ></span> wrote:<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div id="m_2442931521500850090m_-9111524537336605818m_-5402342489171244302divRpF162219" style="direction:ltr">
<span style="font-family:Tahoma; font-size:10pt">Hi,</span></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>We have the syslog-ng 3.5 installed on Linux OS. We are trying to use the pipe function (to pipe data to the log file). This pipe file is FIFO.</div>
<div><br>
</div>
<div>One of the issues we are seeing is that, the file size of this pipe file is always ZERO and never grows and second the timestampe on the file never updates or changes.</div>
<div><br>
</div>
<div>Though when we do a "cat pipefilename" command we do see contents of the file.</div>
<div><br>
</div>
<div>Can you please let us know what we could be doing wrong or any feedback on how to resolve the issue?</div>
<div><br>
</div>
<div>Thanks</div>
<span class="m_2442931521500850090m_-9111524537336605818HOEnZb"><font color="#888888">
<div>Jitesh</div>
</font></span></div>
</div>
</div>
</div>
</div>
<br>
______________________________________________________________________________<br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<div>
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Member info: Caution-Caution-https://lists.balabit.hu/ < Caution-https://lists.balabit.hu/ > mailman/listinfo/syslog-ng < Caution-Caution-https://lists.balabit.hu/mailman/listinfo/syslog-ng < Caution-https://lists.balabit.hu/mailman/listinfo/syslog-ng >  > <br>
Documentation: Caution-Caution-http://www.balabit.com/ < Caution-http://www.balabit.com/ > support/documentation/?product=syslog-ng < Caution-Caution-http://www.balabit.com/support/documentation/?product=syslog-ng < Caution-http://www.balabit.com/support/documentation/?product=syslog-ng >  > <br>
FAQ: Caution-Caution-http://www.balabit.com/wiki/ < Caution-http://www.balabit.com/wiki/ > syslog-ng-faq < Caution-Caution-http://www.balabit.com/wiki/syslog-ng-faq < Caution-http://www.balabit.com/wiki/syslog-ng-faq >  > <br>
<br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
______________________________________________________________________________<br>
Member info: Caution-https://lists.balabit.hu/mailman/listinfo/syslog-ng < Caution-https://lists.balabit.hu/mailman/listinfo/syslog-ng > <br>
Documentation: Caution-http://www.balabit.com/support/documentation/?product=syslog-ng < Caution-http://www.balabit.com/support/documentation/?product=syslog-ng > <br>
FAQ: Caution-http://www.balabit.com/wiki/syslog-ng-faq < Caution-http://www.balabit.com/wiki/syslog-ng-faq > <br>
<br>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>