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


Reply
  Search this Thread
Old 10-24-2011, 07:57 AM   #1
sloun
LQ Newbie
 
Registered: Oct 2011
Distribution: Debian 6, FreeBSD 8
Posts: 9

Rep: Reputation: Disabled
Logging in file iptables log only, not other system info


Hi there!

I configured the iptables log entry in separate file, but there is a problem, the log file contains a lot of unnecessary data here. Is it possible to record only iptables logs and nothing more?


Cheers.

Code:
kern.warning /home/logs/iptables.log

Example:


Code:
2011-10-23T09:38:35.739605+03:00 localhost kernel: [28346.194770] IN=eth0 OUT= MAC=e0:cb:4e:0c:a9:20:00:8d:92:59:00:05:02:00 SRC=192.168.0.1 DST=192.168.0.13 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=39968 PROTO=TCP SPT=3085 DPT=620 WINDOW=0 RES=0x00 RST URGP=0 
2011-10-23T09:40:10.751538+03:00 localhost kernel: [28441.206517] mtrr: MTRR 1 not used
2011-10-23T09:40:12.598540+03:00 localhost kernel: [28443.055133] mtrr: MTRR 1 not used
2011-10-23T09:50:00.299545+03:00 localhost kernel: [    0.000000] ACPI: RSDP 000f7c80 00014 (v00 Nvidia)
2011-10-23T09:50:00.299551+03:00 localhost kernel: [    0.000000] ACPI: RSDT 7fff3040 00034 (v01 Nvidia NVDAACPI 42302E31 NVDA 00000000)
2011-10-23T09:50:00.299557+03:00 localhost kernel: [    0.000000] ACPI: FACP 7fff30c0 00074 (v01 Nvidia NVDAACPI 42302E31 NVDA 00000000)
2011-10-23T09:50:00.299563+03:00 localhost kernel: [    0.000000] ACPI Warning: Optional field Pm2ControlBlock has zero address or length: 0000000000000000/1 (20090903/tbfadt-557)
2011-10-23T09:50:00.299568+03:00 localhost kernel: [    0.000000] ACPI: DSDT 7fff3180 06E8A (v01 NVIDIA NVDAACPI 00001000 MSFT 03000000)
2011-10-23T09:50:00.299574+03:00 localhost kernel: [    0.000000] ACPI: FACS 7fff0000 00040
2011-10-23T09:50:00.299580+03:00 localhost kernel: [    0.000000] ACPI: _HPT 7fffa140 00038 (v01 Nvidia NVDAACPI 42302E31 NVDA 00000098)
2011-10-23T09:50:00.299585+03:00 localhost kernel: [    0.000000] ACPI: MCFG 7fffa1c0 0003C (v01 Nvidia NVDAACPI 42302E31 NVDA 00000000)
2011-10-23T09:50:00.299591+03:00 localhost kernel: [    0.000000] ACPI: APIC 7fffa080 0007C (v01 Nvidia NVDAACPI 42302E31 NVDA 00000000)
 
Old 10-25-2011, 05:00 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Moved: This thread is more suitable in Linux Newbie forum and has been moved accordingly to help your thread/question get the exposure it deserves.
* And wrt the question: not with stock Syslogd but you can with either Rsyslogd or Syslog-NG.
 
1 members found this post helpful.
  


Reply


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
iptables logging to 3 log files peridot121 Linux - Server 4 07-30-2010 06:50 PM
Ubuntu and Bind - Named log file is not logging info after syslogd restarts Spacetrucker Linux - Server 7 05-13-2009 11:56 AM
Firewall log file, how to make several different log files with IPTables? newtovanilla Linux - Newbie 5 11-28-2008 01:39 PM
python: logging can't log info level? Chowroc Programming 2 05-07-2006 04:57 AM
IPTables logging going to console not the log file arobinson74 Linux - Networking 2 04-01-2003 02:20 AM


All times are GMT -5. The time now is 08:50 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