From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: ausearch nodes option Date: Fri, 5 Jun 2009 10:42:19 -0400 Message-ID: <200906051042.19485.sgrubb@redhat.com> References: <1244210822.31664.515.camel@homeserver> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1244210822.31664.515.camel@homeserver> Content-Disposition: inline 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@redhat.com List-Id: linux-audit@redhat.com On Friday 05 June 2009 10:07:02 am LC Bruzenak wrote: > 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": ausearch has one and exactly one entry for each search option that you add to a command line. Two nodes don't work just as two files or two terminals don't work. It does however do a partial match. So you could have a naming scheme that allows search by subnet. ausearch -n 192.168.1 > I may patch my own ausearch to behave differently. If you patch yours, send it to the list. -Steve