Re: Iptables logs on High bandwidth traffic network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, 5 May 2005, Mogens Valentin wrote:

> >>>How about using a fifo (man mkfifo and man syslog) and let syslog pipe
> >>>to that fifo. Some program can then read from the fifo, parse data, and
> >>>maybe use a database for storing the parsed, now more limited, data.
> >>>Might be a good ide to have the database on another system :-
> >>
> > Why where a FIFO and a program which parses and transmit the data to
> > another system any faster than syslog/syslog-ng/ulogd/etc? (Why reinvent
> > the wheel?)
>
> It might not.. AFAIK, the FIFO is implemented not as disk I/O, but is a
> memory thingy.
> It *appears* as file I/O, but the filesystem is used only to create that
> named pipe.
> Hence, my thought was that since logging with iptables has to go throu
> syslog, this might offload faster through a FIFO.
> The app reading the FIFO would preprocess the datastream and turn it
> into chunks, exactly as Taylor put it.
> Depending on what one really wants to look at / dig out of logging, the
> FIFO-reading app could also reduce data.

At standard syslog, you can rely on its internal (not-tunable) buffering.
At syslog-ng, you can speficy explicitly the buffer size (output queue
size) per destination. At the ULOG target, you can specify how many
packets should be queued in-kernel, before transmitting a multipart
message to userspace.

And as it was mentioned by others as well, one should offload real
logging to another machine over a dedicated wire.

Best regards,
Jozsef
-
E-mail  : kadlec@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxxxxx
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux