Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Logfile-NCSA-Undefined Subroutine?

by WhiteBird (Hermit)
on Aug 07, 2003 at 02:18 UTC ( #281694=note: print w/replies, xml ) Need Help??


in reply to Re: Logfile-NCSA-Undefined Subroutine?
in thread Logfile-NCSA-Undefined Subroutine?

I may try the version 3.02, just to keep current. In the meantime, I did discover that a subroutine in Logfile::Base requires Time::ParseDate, which was not installed on my system. I'm on a Win 2000 system and the module wasn't available from ActiveState so I downloaded it from CPAN and installed it. While it failed 92 out of 268 subtests, it still works enough to get through the Logfile date parsing.

Now I have an error  "No Index for Host".

Gotta love it. This much trouble for a "simple" 6 line bit of code. Back to debugging.

Replies are listed 'Best First'.
Re: Re: Re: Logfile-NCSA-Undefined Subroutine?
by shenme (Priest) on Aug 07, 2003 at 04:36 UTC
    Yes, it was looking for any one of several different time modules, including Time::ParseDate, then using its own subroutine, which _still_ required Time::Local.

    I have not been able to get anything other than

    $log->report(Group => 'thing', ... );
    to work, where 'thing' is _one_ of the names mentioned in the new( Group => ). The module seems to handle only one key at a time.   It is more painful than I thought it would be....
      Painful is right. I'm not sure the effort is worth the result--the jury is still out on that one. It does appear that you can have more than one thing in Group

      Group => [Host,File,Hour]; as long as you have a report type declared for each item as such:

      $log->report(Group => File, Sort => Records); $log->report(Group => Host, Sort => Bytes); $log->report(Group => Hour, List => [Bytes, Records];

      For some reason, I didn't find the documentation to be entirely clear about that point.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://281694]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-05-22 01:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (78 votes). Check out past polls.

    Notices?