[netflow-tools] Flowd unable to use FIFO
Damien Miller
djm at mindrot.org
Sat Jul 9 12:18:15 EST 2005
It would help if I actually attached the patch.
-d
Damien Miller wrote:
> Jason Dixon wrote:
>
>>Forwarding to netflow-tools where it belongs...
>>
>>I'm trying to get flowd to write to FIFO so I can read it in with a perl
>>script and output to my choice of storage (file, db, etc). The patch
>>below from djm allows flowd to write to fifo, but Flowd.pm fails on
>>init() with a "bad magic" error.
>
>
> Hi,
>
> I have thought about this some more - rather than skipping log headers
> based on what type of file your are reading from / writing to, I think
> it is better that users a choice.
>
> This patch does this - it adds a "skip header" option to flowd,
> flowd-reader and the perl/python APIs. So you should be able to put:
>
> logfile "/path/to/fifo" noheader
>
> in your flowd.conf and directly listen to it with "flowd-reader -S
> /path/to/fifo". You can also use flowd-reader to write to a fifo
>
> Read the diff to see the equivalent options for perl and python.
>
> Does this work for you? If so, I'll tidy it up, document and commit it.
>
> -d
>
> _______________________________________________
> netflow-tools mailing list
> netflow-tools at mindrot.org
> http://www.mindrot.org/mailman/listinfo/netflow-tools
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: flowd-noheader.diff
Url: http://lists.mindrot.org/pipermail/netflow-tools/attachments/20050709/1cdfb5e3/attachment.ksh
More information about the netflow-tools
mailing list