[syslog-ng] Log rotate without log rotate.

Bruno Vieira giuliapo at gmail.com
Fri Mar 16 15:59:00 CET 2007


Hi there.

I have a question and at the same time i almost know that it must exist a
way of doing this.

The situation is: I want that my logs act as FIFOs. I mean.. I want my log
files to have a max of 100 KB or 100 lines (the one that is most convenient
to find a solution). If I use a pipe, I have the problem that if I read on
one side of the pipe, it continues dumping it's content until getting empty
regardless of having more messages coming in through the other end. But what
I want is a pipe that that keeps it's content and only flushes a message out
every time it receives a message in. Just like a FIFO.. I want this
behaviour in a file... named pipe? I don't know the solution for this but I
can feel that it is out there :)

This way I would have a log rotation without using log rotate that normally
it copies the file content to a new one and than syslog-ng starts writing on
an empty one.

Tell me what you think about this.

Best regards,
Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20070316/0235f155/attachment.htm


More information about the syslog-ng mailing list