Re: [squid-users] how to convert Squid log format to Apache

From: Rodrigo A B Freire <zazgyn@dont-contact.us>
Date: Wed, 10 Aug 2005 08:46:40 -0300

    Hello,

    Set emulate_httpd_log on

    in squid.conf

----- Original Message -----
From: "MAIL.ru" <kanat@ccbb.kg>
To: <squid-users@squid-cache.org>
Sent: Wednesday, August 10, 2005 8:34 AM
Subject: [squid-users] how to convert Squid log format to Apache

>
> Sorry if posted not there.
> my log analyzer program can’t understand this format, I need to convert
> this as the below. Could anybody help how to convert this?
>
> Squid log format:
> 1123577422.425 0 192.168.160.80 TCP_MISS/200 781 GET http://www.
> business.lbn.ru/cgi-bin/iframe/old-GAGAVA? Fin9 DIRECT/217.16.31.83 text/
> html
> 1123577424.560 0 192.168.160.80 TCP_MISS/302 0 GET http://www.au-au.
> ru/ap/show.php? Fin9 DIRECT/193.23.48.235 text/html
> 1123577424.829 0 192.168.160.80 TCP_MISS/200 35672 GET http://my.jdu.
> ru/messages.phtml Fin9 DIRECT/194.67.27.126 text/html
> 1123577425.889 0 192.168.160.80 TCP_MISS/304 0 GET http://img.
> allegro.pl/photos/ap/168/391.gif Fin9 DIRECT/193.23.48.211 image/gif
>
> Apache log format:
> 192.168.160.71 - Teh1 [10/Aug/2005:17:15:35 +0600] "GET http://www.
> medafarm.ru/images/strelka.gif HTTP/1.1" 200 191
> 192.168.160.71 - Teh1 [10/Aug/2005:17:15:35 +0600] "GET http://www.
> medafarm.ru/images/shadow_head.gif HTTP/1.1" 200 51
> 192.168.160.71 - Teh1 [10/Aug/2005:17:15:35 +0600] "GET http://www.
> medafarm.ru/images/anons_bg2.gif HTTP/1.1" 200 185
> 192.168.160.71 - Teh1 [10/Aug/2005:17:15:35 +0600] "GET http://www.
> medafarm.ru/images/point_bottom.gif HTTP/1.1" 200 142
> 192.168.160.71 - Teh1 [10/Aug/2005:17:15:35 +0600] "GET http://top3.list.
> ru/counter? HTTP/1.0" 200 43
>
>
>
>
Received on Wed Aug 10 2005 - 05:46:41 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Sep 01 2005 - 12:00:01 MDT