From: Jeffrey Laramie Subject: Re: putting all logs in a file Date: Wed, 10 Sep 2003 11:11:42 -0400 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3F5F3F2E.70102@Loudoun-Fairfax.com> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------010305060701020804040608" Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: Stephen Smoogen Cc: akshaysalkar , netfilter@lists.netfilter.org This is a multi-part message in MIME format. --------------010305060701020804040608 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Stephen Smoogen wrote: >You can change the log level with the --log-level addtion to any -j LOG >lines > >LOG_LEVEL="local1" >-j LOG --log-level ${LOG_LEVEL} --log-prefix " Blah " > >Then have local1 in /etc/syslog.conf go to /var/log/iptables.log > > I also wanted to do this, so I tried it and iptables balked with: iptables v1.2.7a: log-level 'local1' unknown I checked my syslog.h file and found that 'local1' was an alias for the LOG_LOCAL1 facility and not defined as a priority (log level). Suggestions? Jeff --------------010305060701020804040608 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Stephen Smoogen wrote:
You can change the log level with the --log-level addtion to any -j LOG 
lines

LOG_LEVEL="local1"
-j LOG --log-level ${LOG_LEVEL} --log-prefix " Blah "

Then have local1 in /etc/syslog.conf go to /var/log/iptables.log
  

I also wanted to do this, so I tried it and iptables balked with:

iptables v1.2.7a: log-level 'local1' unknown

I checked my syslog.h file and found that 'local1' was an alias for the LOG_LOCAL1 facility and not defined as a priority (log level). Suggestions?

Jeff
--------------010305060701020804040608--