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

Blair Zajac blair at orcaware.com
Mon Jun 10 11:37:06 PDT 2002


The problem with date_parse is that it only takes input from a single
column, and in this case we have two columns of data.  So the only
solutions right now is to patch Orca to take multiple columns or
to preprocess the data suitable for Orca.

Best,
Blair

xlheel wrote:
> 
> 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



More information about the Orca-users mailing list