From mboxrd@z Thu Jan 1 00:00:00 1970 From: LC Bruzenak Subject: ausearch nodes option Date: Fri, 05 Jun 2009 09:07:02 -0500 Message-ID: <1244210822.31664.515.camel@homeserver> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n55E7KPr002203 for ; Fri, 5 Jun 2009 10:07:20 -0400 Received: from mail.magitekltd.com (rrcs-24-242-137-197.sw.biz.rr.com [24.242.137.197]) by mx3.redhat.com (8.13.8/8.13.8) with ESMTP id n55E75vW001061 for ; Fri, 5 Jun 2009 10:07:06 -0400 Received: from [24.242.137.194] (helo=[192.168.30.40]) by mail.magitekltd.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1MCa3d-0003KM-Q9 for linux-audit@redhat.com; Fri, 05 Jun 2009 09:06:09 -0500 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Linux Audit List-Id: linux-audit@redhat.com 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 " 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