Re: access.log

From: Jens-S. Voeckler <>
Date: Tue, 27 Apr 1999 15:37:08 +0200

On Tue, 27 Apr 1999 wrote:

] - - [27/Apr/1999:09:48:23 -0500] "ICP_QUERY
] HTTP/0.0" 0 60 UDP_MISS:NONE
] - - [27/Apr/1999:09:50:34 -0500] "GET
] HTTP/1.0" 404 397 TCP_MISS:DIRECT
]and in an other machine I'm runing squid-2.1.PATCH2 and the access.log
]looks like :
]925214286.650 127 TCP_REFRESH_HIT/304 344 GET
]I need some help to understand why my first access.log is not in the same
]format. The squid.conf is "identical".

That does not seem likely. The first excerpt looks like common log format,
and the second one like squid's native log format. Check the
"emulate_httpd_log" parameter.

]I need my first access.log to have the same format of the second, to run
]a stat program using these files. It seems that the time format is not
]the same and i don't understand why.

Native log format logs UTC timestamps (first column); how to convert that
into something human readable is part of this list every month. Still, I
would suggest to use native format, as it provides other and more
information than the common log format. The only item the common logfile
format provides which is not part of the native format is the HTTP version
number (at least it was back in 2.0p2 when I looked into access_log.c).

Le deagh dhùrachd,
Dipl.-Ing. Jens-S. Vöckler (
Institute for Computer Networks and Distributed Systems
University of Hanover, Germany; +49 511 762 4726
Received on Tue Apr 27 1999 - 08:06:18 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:45:58 MST