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
[EMAIL PROTECTED]
 



-----Ursprüngliche Nachricht-----
Von: Peter Marshall [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 2. Juli 2004 13:26
An: [EMAIL PROTECTED]; 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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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

Reply via email to