From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Norman Mark St. Laurent" Subject: Re: buffer space Date: Mon, 17 Aug 2009 15:46:15 -0400 Message-ID: <4A89B387.4070107@conceras.com> References: <1250532894.3048.729.camel@homeserver> <4A89A586.9020008@conceras.com> <200908171537.37593.sgrubb@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n7HJkYJQ017578 for ; Mon, 17 Aug 2009 15:46:34 -0400 Received: from smtpauth23.prod.mesa1.secureserver.net (smtpauth23.prod.mesa1.secureserver.net [64.202.165.47]) by mx1.redhat.com (8.13.8/8.13.8) with SMTP id n7HJkHx2031892 for ; Mon, 17 Aug 2009 15:46:17 -0400 In-Reply-To: <200908171537.37593.sgrubb@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Steve Grubb Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com Ok, For some reason sort -r will not work with sort -t. --key=3,2n options I tried: sort -r -t. --key=3,2n sort -t. -r --key=3,2n sort -t. --key=3,2n -r But.... zcat `ls /var/log/audit/*.gz | sort -t. --key=3,2n` | tac | ausearch -i works like a champ. Gotta luv linux.. Thnks.. Norman Mark St. Laurent Conceras | Chief Technology Officer and ISSE Phone: 703-965-4892 Email: mstlaurent@conceras.com Web: http://www.conceras.com Connect. Collaborate. Conceras. Steve Grubb wrote: > On Monday 17 August 2009 02:46:30 pm Norman Mark St. Laurent wrote: > >> Depending if you are using logrotate.d/audit and how it numbers the >> files as it rotates... >> >> audit.log.1.gz >> audit.log.2.gz >> ... >> audit.log.89.gz >> audit.log.90.gz >> >> The sort below will but the list in exact order.... >> >> zcat `ls /var/log/audit/*.gz | sort -t. --key=3,2n` | ausearch -i >> > > For this to work right, it has to be in descending order. So, add a -r to the > sort command. > > -Steve > > >