From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Mather Subject: Re: Output of aureport in columns Date: Fri, 13 Jul 2012 13:09:00 -0400 Message-ID: <1342199340.2555.6.camel@debian.domain_name> References: <1342124785.2463.15.camel@debian.domain_name> <1493625.F4rznPhkvU@x2> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (ext-mx16.extmail.prod.ext.phx2.redhat.com [10.5.110.21]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6DH93AR006554 for ; Fri, 13 Jul 2012 13:09:03 -0400 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6DH92FY013630 for ; Fri, 13 Jul 2012 13:09:02 -0400 In-Reply-To: <1493625.F4rznPhkvU@x2> 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 Yes, Steve, adding --raw works beautifully. Thanks. Now, where can I find a tutorial that might have taught me this? And is there a way to search this list? Michael Mather -------------- On Fri, 2012-07-13 at 09:22 -0400, Steve Grubb wrote: > On Thursday, July 12, 2012 04:26:25 PM Michael Mather wrote: > > Hi, > > > > I have managed to find an easy way to put the output of aureport into > > neat columns. For example: > > > > aureport -i -f | sed 's/=====/==== /g' | column -t > > > > However, if I combine this with ausearch, as in: > > > > ausearch -k ROOT |aureport -i -f | sed ..... > > Is this really the ausearch portion or did you omit some parameters for > brevity? > > > > then some lines come out properly and some have extra data that shifts > > everything off. For example, here are two successive lines from the > > output. The first has 9 fields and the second 15: > > > > 311. 12-07-12 16:21:03 /proc/self/loginuid open yes /usr/bin/sudo mm 597 > > 312. 12-07-12 16:21:03 (null) inode=970 dev=08:01 mode=0100755 ouid=0 > > ogid=0 rdev=00:00 execve yes /sbin/aureport root 599 > > > > What is happening? > > Does it behave better if you add --raw to the ausearch portion? > > -Steve