[Orca-users] Re: How to use date_parse ??

xlheel mian at vip.cybercity.dk
Mon Jun 10 05:47:11 PDT 2002


Hi Blair

It possible to use date_parse if I change the log-file date format to

yyyy-mm-dd HH:MM:SS

My problem is that I am using software only supports human-readable
date-formats.

Regards
Michael
--- In orca-discuss at y..., Blair Zajac <blair at o...> wrote:
> xlheel wrote:
> >
> > Hi All
> >
> > I have log-file for the use of my drives in the format
> > drivekap.yyyymmdd with contains like
> >
> > 00:00:02 10  3  0 30.00% 0.00%
> >
> > I have made a perl subroutine that returns the epoch-time based on
> > the filename and the first column, but I can't get to function in
the
> > config_file.
> >
> > Extract from config_file
> >
> > date_source column_name time
> > date_parse sub {
> > use Time::Local;
> > my $file=$_[0];
> > my $time=$_[1];
> > .
> > .
> > .
> > return epoch;
> > }
> >
>
> Orca's configuration file does not support this.  You have to
> preprocess your data to get the Unix epoch time into the file
> that Orca will read.
>
> Best,
> Blair
>
> --
> Blair Zajac <blair at o...>
> Web and OS performance plots - http://www.orcaware.com/orca/



More information about the Orca-users mailing list