AW: [squid-users] Re: Re: time in logs

From: <Werner.Rost@dont-contact.us>
Date: Fri, 2 Jul 2004 13:57:31 +0200

Indeed.

Pleaese create a perl script, say conv_date:

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

Now cat access.log | conv_date gives human readable time.

Mit freundlichem Gruß/Yours sincerely
Werner Rost
GM-FIR - Netzwerk
 
ZF Boge Elastmetall GmbH
Friesdorfer Str. 175, 53175 Bonn, Deutschland/Germany
Telefon/Phone +49 228 3825 - 420, Telefax/Fax +49 228 3825 - 398
werner.rost@zf.com
 

-----Ursprüngliche Nachricht-----
Von: Peter Marshall [mailto:peter.marshall@caris.com]
Gesendet: Freitag, 2. Juli 2004 13:26
An: squid-users@squid-cache.org; Adam Aube
Betreff: Re: [squid-users] Re: Re: time in logs

Is there not a configuration option in squid to make it human readable ?
This seems kind of odd .. squid is soo great .. I am not sure why anyone
would want to have unix time in their logs ....

Peter

----- Original Message -----
From: "Adam Aube" <aaube01@baker.edu>
To: <squid-users@squid-cache.org>
Sent: Wednesday, June 30, 2004 5:41 PM
Subject: [squid-users] Re: Re: time in logs

Hendrik Voigtländer wrote:

> Adam Aube wrote:

>> Peter Marshall wrote:

>>>Is there anyway to have a human readable time in the access logs ?

>> I don't know of a way to make Squid log human readable timestamps

> I use "emulate_httpd_log on". My favorite squid log analyser sarg can
> read this format - and it is perfectly human readible.

The emulated httpd log format does not include all the data the native log
format contains. You will lose potentially useful log data if you use it.

Better to keep the native log format, and just use a script that converts
the timestamp on the fly to read it.

Adam
Received on Fri Jul 02 2004 - 05:56:59 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:01 MDT