From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: buffer space Date: Mon, 17 Aug 2009 15:37:37 -0400 Message-ID: <200908171537.37593.sgrubb@redhat.com> References: <1250532894.3048.729.camel@homeserver> <4A89A586.9020008@conceras.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A89A586.9020008@conceras.com> 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: "Norman Mark St. Laurent" Cc: linux-audit@redhat.com List-Id: linux-audit@redhat.com 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