Good idea, and very easy to implement (there's a class that does this in
WebLog). The only question is the best way to specify it.
The cleanest solution is probably #3, but that involves writing a parser for
cache.log (or looking at squid.pid and then getting the start time of the
process?). That would take a bit of doing, so I'd say #1 for now.
I will put in getopt like this:
-a (Archive): use access.log.0 instead of access.log
-i (stdIn): take logfile from stdin (so that you can cat|zcat logfiles into
it
-s (Start time): UTC time to start analysis
Start and end times in the display are easy too. Will do something tonight.
Thanks,
> -----Original Message-----
> From: Richard Dale [SMTP:richard.dale@aotconsulting.com.au]
> Sent: Tuesday, September 15, 1998 1:56 PM
> To: 'mnot@pobox.com'
> Cc: 'squid-users@ircache.net'
> Subject: Squidge suggestion
>
> Hi Mark,
>
> Great product! I've been playing with refresh patterns and using
> squidge to check things out.
>
> Since I use the Squid log files here to bill back Internet usage to the
> clients, I can't really move the log files out the way so I can analyse
> the effect that the refresh pattern has made to the system.
>
> So, it would be nice to be able to specify to Squidge the first log
> entry to use in access.log to process from.
>
> This could be done in a few different ways:
>
> 1. Base UTC time specified (e.g. 905832266)
> 2. Offset from now (eg -30min, -2hrs, -1week etc.)
> 3. Since time of last restart (check cache.log first)
> 4. Since the restart N times ago (useful if people restart their
> squid once a day perhaps)
>
> Also, It would be nice to also have a human-readable first and last
> access date to allow better interpretation of the results.
>
> I'm no Python programmer (I prefer Perl myself) but I would delve in if
> I had some more time.
>
> Best regards,
> Richard.
>
>
> _________________________________________________
> Richard Dale - AOT Consulting
> Suite 4, Business Centre, Technology Park
> 2 Brodie Hall Drive
> Bentley Perth WA 6102 Australia
> ph +61 8 9451 0853 fax +61 8 9451 0889
> email richard.dale@aotconsulting.com.au
> _____________________________________________________________
> AOT Consulting has a policy to use digital signatures
> and certificates for confidential information. Please contact
> us if you wish to exchange information using this
> security mechanism.
> _____________________________________________________________
>
>
Received on Mon Sep 14 1998 - 21:20:09 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:01 MST