LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Iptables log format can be modified ? (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-log-format-can-be-modified-761162/)

solink 10-11-2009 10:16 AM

Iptables log format can be modified ?
 
All friends:

I bring a new questions:

I have made a NAT box with RHEL5,the traffic is aboult 600Mbps.At the

same time ,I use iptables to get SNAT log.But the log file get very

very large,About 3GB/day.

So I think if there is a way to modified the iptables logging format.

For example:

The follow log,I need only record timestamp,SRC,DST,SPT,DPT
----------
Oct 9 22:38:42 NAT kernel: IN= OUT=eth1 SRC=79.86.192.218 DST=111.147.65.19 LEN=48 TOS=0x00 PREC=0x00 TTL=124 ID=4532 DF PROTO=TCP SPT=1786 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0
----------

My think can be come true ?

greetings Solink

Tinkster 10-11-2009 01:37 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

http://www.linuxquestions.org/questi...roblem-751362/


All times are GMT -5. The time now is 08:46 PM.