[syslog-ng] [Non-DoD Source] Re: Syslog 3.5 (pipe file issue)
laszlo.varady at balabit.com
Fri Oct 27 15:27:57 UTC 2017
As Laci pointed out, this is an expected behavior.
Named pipes are not regular files, the "file size" is always 0 byte.
*When processes are exchanging data via the FIFO, the kernel passes all
data internally without writing it to the file system.*
If you are interested in the capacity of named pipes, you can read about
https://linux.die.net/man/7/pipe (Chapter name: Pipe capacity)
On Fri, Oct 27, 2017 at 4:56 PM Amin, Jitesh CTR (US) <
jitesh.amin.ctr at mail.mil> wrote:
> Hi Laci,
> So we can create named pipe object with filename successfully.
> 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).
> *From:* syslog-ng [syslog-ng-bounces at lists.balabit.hu] on behalf of
> Szemere, László [laszlo.szemere at balabit.com]
> *Sent:* Friday, October 27, 2017 9:46 AM
> *To:* Syslog-ng users' and developers' mailing list
> *Subject:* [Non-DoD Source] Re: [syslog-ng] Syslog 3.5 (pipe file issue)
> 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
> Hello Jitesh,
> 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-
> > )
> For me, this is the expected behavior of named pipes (man page: 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-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
> On Fri, Oct 27, 2017 at 2:42 PM, Amin, Jitesh CTR (US) <
> jitesh.amin.ctr at mail.mil < Caution-mailto:jitesh.amin.ctr at mail.mil > >
>> 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.
>> 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.
>> Though when we do a "cat pipefilename" command we do see contents of the
>> Can you please let us know what we could be doing wrong or any feedback
>> on how to resolve the issue?
> Member info: Caution-https://lists.balabit.hu/
>> mailman/listinfo/syslog-ng < Caution-
>> https://lists.balabit.hu/mailman/listinfo/syslog-ng >
>> Documentation: Caution-http://www.balabit.com/
>> support/documentation/?product=syslog-ng < Caution-
>> http://www.balabit.com/support/documentation/?product=syslog-ng >
>> FAQ: Caution-http://www.balabit.com/wiki/syslog-ng-faq < Caution-
>> http://www.balabit.com/wiki/syslog-ng-faq >
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the syslog-ng