netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Alessandro Vesely <vesely@tana.it>
Cc: netfilter@vger.kernel.org
Subject: Re: Log lines from the CLI, was  [ANNOUNCE] conntrack-tools 1.0.0 released
Date: Wed, 09 Mar 2011 14:39:55 +0100	[thread overview]
Message-ID: <4D77832B.3090803@netfilter.org> (raw)
In-Reply-To: <4D74DDEA.5060207@tana.it>

On 07/03/11 14:30, Alessandro Vesely wrote:
> Hi!
> 
> On 27/Feb/11 03:28, Pablo Neira Ayuso wrote:
>> - The command line interface (CLI) conntrack that provides an interface
>> to add, delete and update flow entries, list current active flows in
>> plain text/XML, current IPv4 NAT'ed flows, reset counters, and flush the
>> complete connection tracking table among many other.
> 
> Although this is a command line tool, I guess it is mostly used in
> scripts, or execv'ed by other command line utilities according to some
> parameters, possibly non-interactively.  Thus, there is a usability
> concern about its output.
> 
> I would like to see regular lines such as "NNN flow entries have been
> deleted" at LOG_INFO, while something like "Operation failed: %s"
> possibly deserves LOG_CRIT.  Would it be possible to use dlog in
> conntrack.c?

The command line tool is not designed for logging. For that purpose you
can use ulogd2.

      reply	other threads:[~2011-03-09 13:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27  2:28 [ANNOUNCE] conntrack-tools 1.0.0 released Pablo Neira Ayuso
2011-02-28  6:45 ` xuhainanjing
2011-03-07 13:30 ` Log lines from the CLI, was [ANNOUNCE] " Alessandro Vesely
2011-03-09 13:39   ` Pablo Neira Ayuso [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D77832B.3090803@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=netfilter@vger.kernel.org \
    --cc=vesely@tana.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).