Re: [squid-users] how to decode date and time in access.log

From: Mark Elsen <mark.elsen@dont-contact.us>
Date: Mon, 6 Mar 2006 11:16:16 +0100

> Hi people!
> I was looking for any "live " squid access.log analyzer but i didn't
> find anythig.
> I want somehow to parse access.log or to find the way to decode source
> address, destination address and date and time.
> Anyway I use sarg for monthly reports, but i need something that i can
> use at any moment to look at access.log and to translate me date and time.
> I dont need any sort function , for example, just if want to find who
> was using the net 3 hous ago just by looking at log file.
> access.log is quite nice but the problem is the date and time format
>
> Thank U
>

           #! /usr/bin/perl -p
            s/^\d+\.\d+/localtime $&/e;

  M.
Received on Mon Mar 06 2006 - 03:16:21 MST

This archive was generated by hypermail pre-2.1.9 : Sat Apr 01 2006 - 12:00:03 MST