Fw: [Logwatch] Logcheck

Systems Administrator sysadmin@sunet.com.au
Tue, 28 Jan 2003 09:34:59 +1100


    For anyone who decides to do this, I strongly recommend checking out the
following modules:
Time::ParseDate (for sucking in any date and turning it into GMT)
Time::Piece (was called Time::Object -- this is great for Date Arithmetic,
ie. $time3 = $time1 - $time2, or if($time1 > $time2) {...}

    Hope this helps :).

Tim Nelson
Systems Administrator
Sunet Internet
Tel:  +61 3 5241 1155
Fax: +61 3 5241 6187
Web: http://www.sunet.com.au/
Email: sysadmin@sunet.com.au
----- Original Message -----
From: "Kirk Bauer" <kirk@kaybee.org>
To: "Kenneth Porter" <shiva@sewingwitch.com>
Cc: <logwatch@logwatch.org>
Sent: Saturday, January 25, 2003 1:27 AM
Subject: Re: Fw: [Logwatch] Logcheck


> On Fri, 24 Jan 2003, Kenneth Porter wrote:
>
> > That's been a long-standing problem with logwatch: the date arithmetic
is
> > wanting. It crudely looks only at the date rather than computing a full
> > timestamp from a log entry and doing time arithmetic with finer
> > granularity. Ideally I'd like to run it an arbitrary time and have it
show
> > only activity for the last 24 hours. Any Perl coders want to volunteer
to
> > improve this?
>
> Yes, I agree... I'll add the code if somebody writes it, or I will write
> it myself one of these days ;)
>
> --
> Kirk Bauer <kirk@kaybee.org>
> http://linux.kaybee.org | www.autorpm.org | www.logwatch.org
>
> _______________________________________________
> Logwatch mailing list
> Logwatch@logwatch.org
> http://list.logwatch.org/lists/listinfo/logwatch
>