public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: LC Bruzenak <lenny@magitekltd.com>
To: Linux Audit <linux-audit@redhat.com>
Subject: ausearch nodes option
Date: Fri, 05 Jun 2009 09:07:02 -0500	[thread overview]
Message-ID: <1244210822.31664.515.camel@homeserver> (raw)

On an audit collector machine, I (obviously) have data from different
hosts.
In an ausearch I would like to look for events from multiple hosts.
Ideally I would have multiple "-n <HOSTNAME>" entries which would return
events for any of the hosts.

The man page says that the options form an "and" statement. I find this
isn't the case with multiple hosts specified, but the result is the
"last host listed wins": 

[root@audit audit]# ausearch -i -n client3 -n client12 | grep client3 |
wc 
      0       0       0

[root@audit audit]# ausearch -i -n client12 -n client3 | grep client3 |
wc 
   2035   35292  529086

[root@audit audit]# ausearch -i -n client12 -n client3 | grep client12 |
wc 
      0       0       0

[root@audit audit]#  ausearch -i -n client3 -n client12 | grep client12
| wc 
   1709   29481  445211


I may patch my own ausearch to behave differently. I could just extract
them independently, however then I'd need to weave them back together
because I need the events to be sequential.

LCB.

-- 
LC (Lenny) Bruzenak
lenny@magitekltd.com

             reply	other threads:[~2009-06-05 14:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-05 14:07 LC Bruzenak [this message]
2009-06-05 14:42 ` ausearch nodes option Steve Grubb
2009-06-05 15:12   ` LC Bruzenak

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=1244210822.31664.515.camel@homeserver \
    --to=lenny@magitekltd.com \
    --cc=linux-audit@redhat.com \
    /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