All of lore.kernel.org
 help / color / mirror / Atom feed
* I don't want the LOG be writed to /var/log/messages
@ 2006-02-07  5:27 openbsd shen
  2006-02-07  5:38 ` Sudhakar Moharana
  2006-02-07  6:09 ` Rob Sterenborg
  0 siblings, 2 replies; 3+ messages in thread
From: openbsd shen @ 2006-02-07  5:27 UTC (permalink / raw)
  To: netfilter

I write a line in /etc/syslog.conf:
kern.=info                                              /var/log/iptables

Now the log of iptables write to /var/log/iptables, but I found that
the log still write in /var/log/messages, now I have 2 copies of the
log, how can I stop the write to /var/log/messages, and only write to
/var/log/iptables?
Thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: I don't want the LOG be writed to /var/log/messages
  2006-02-07  5:27 I don't want the LOG be writed to /var/log/messages openbsd shen
@ 2006-02-07  5:38 ` Sudhakar Moharana
  2006-02-07  6:09 ` Rob Sterenborg
  1 sibling, 0 replies; 3+ messages in thread
From: Sudhakar Moharana @ 2006-02-07  5:38 UTC (permalink / raw)
  To: openbsd shen; +Cc: netfilter

Modify  the following line in /etc/syslog.conf from
*.info;mail.none;news.none;authpriv.none;cron.none /var/log/messages
to
*.info;mail.none;news.none;authpriv.none;cron.none;kern.none /var/log/messages

Then no kern message will be written to /var/log/messages

thanks & regards
Sudhakar

On 2/7/06, openbsd shen <openbsd.shen@gmail.com> wrote:
> I write a line in /etc/syslog.conf:
> kern.=info                                              /var/log/iptables
>
> Now the log of iptables write to /var/log/iptables, but I found that
> the log still write in /var/log/messages, now I have 2 copies of the
> log, how can I stop the write to /var/log/messages, and only write to
> /var/log/iptables?
> Thanks.
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: I don't want the LOG be writed to /var/log/messages
  2006-02-07  5:27 I don't want the LOG be writed to /var/log/messages openbsd shen
  2006-02-07  5:38 ` Sudhakar Moharana
@ 2006-02-07  6:09 ` Rob Sterenborg
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Sterenborg @ 2006-02-07  6:09 UTC (permalink / raw)
  To: 'netfilter'

> I write a line in /etc/syslog.conf:
> kern.=info
> /var/log/iptables
> 
> Now the log of iptables write to /var/log/iptables, but I found that
> the log still write in /var/log/messages, now I have 2 copies of the
> log, how can I stop the write to /var/log/messages, and only write to
> /var/log/iptables? Thanks.

If you want all iptables messages in one file, use ulogd and the ULOG
target.
http://freshmeat.net/projects/ulogd/


Gr,
Rob



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-07  6:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-07  5:27 I don't want the LOG be writed to /var/log/messages openbsd shen
2006-02-07  5:38 ` Sudhakar Moharana
2006-02-07  6:09 ` Rob Sterenborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.