Using the httpd common log file format provides a standard
human-friendly date/time. However, it loses some cache specific
information that is included in the default Squid log format.
Turn on emulate_httpd_log, for this, though it's probably better to just
pipe your logs through a convertor in order to keep the more complete
information.
Joerg Fritsch wrote:
> I understand, but I remember having had logs (18 months ago with a squid I
> did not configure myself) which showed the execat time like 10:23:24
> (readable, you know) ... and I think it must be possible to configure in
> squid.conf. isn't it ?
>
> --Joerg
>
>
> am 02.04.2001 20:53 Uhr schrieb Joe Cooper unter joe@swelltech.com:
>
>
>> What about the time field in your logs?
>>
>> 986228341.191
>> 986228342.383
>> 986228342.991
>>
>> How much more exact do you want your date/times? ;-) Or do you mean you
>> want to convert that to a slightly more readable format?
>>
>> This little perl script is what I use when I have such a hankering:
>>
>> #! /usr/bin/perl -p
>> s/^\d+\.\d+/localtime $&/e;
>>
>> There are also one-liner versions of this, and some other variants using
>> slightly different methods of conversion. Searching the archives will
>> turn up probably 3-5 different scripts and one-liners, I would think.
>>
>> Joerg Fritsch wrote:
>>
>>
>>> Hi,
>>> my Logs look like this:
>>> 986228341.191 61450 10.200.254.252 TCP_MISS/000 28009 GET
>>> ftp://ftp8.ipswitch.com/ipswitch/product_downloads/f_x86t32.exe arture
>>> DIRECT/ftp8.ipswitch.com -
>>> 986228342.383 368 10.200.254.252 TCP_MISS/200 364 GET
>>> http://download.cnet.com/Images/red_arrow.gif arture
>>> DIRECT/download.cnet.com image/gif
>>> 986228342.991 3570 10.200.254.252 TCP_MISS/200 251 GET
>>> http://gserv-cnet.zdnet.com/clear/10064-0/TM=982272217326/Cnet.gif arture
>>> DIRECT/gserv-cnet.zdne
>>>
>>> That is fine, but where can I configure squid to log the exact date / time
>>> also ?
>>>
>>> Thanks,
>>> JOerg
--
Joe Cooper <joe@swelltech.com>
Affordable Web Caching Proxy Appliances
http://www.swelltech.com
Received on Mon Apr 02 2001 - 14:27:17 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:07 MST