LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 10-11-2009, 11:16 AM   #1
solink
LQ Newbie
 
Registered: Aug 2009
Posts: 4

Rep: Reputation: 0
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
 
Old 10-11-2009, 02:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel log format in /var/log/kern.log sinu_nayak2001 Linux - Newbie 2 10-07-2009 09:34 AM
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 05:14 PM
netfilter/iptables log file format xface66 Linux - Networking 3 05-13-2007 02:00 PM
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 05:03 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 09:38 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration