Re: [squid-users] Log Format

From: Michael Jeung <[email protected]>
Date: Fri, 19 May 2006 14:27:53 -0700

Yep. Those are the pages that I was originally looking at. =)

I guess my question boils down to this: %rq and %rp don't seem to
work for 2.5.STABLE13. Am I the only one who has this problem?

Regards,
Michael Jeung

On May 19, 2006, at 2:21 PM, Visolve squid wrote:

> Hello Michael,
>
> Go through these pages for more details of Custom Log Formats with
> Squid
>
> http://yergler.net/blog/2005/11/08/custom-log-formats-with-squid/
> http://devel.squid-cache.org/customlog/logformat.html.
>
> Thanks,
> Visolve Squid Team,
> http://squid.visolve.com
>
>
> On Fri, 2006-05-19 at 10:07 -0700, Michael Jeung wrote:
>> Hey folks,
>>
>> I'm trying to get the custom log format working with squid. I
>> basically want to emulate the apache combined logs format.
>>
>> I picked this off a website:
>>
>> logformat httpd %>a - %un [%{%d/%b/%Y:%H:%M:%S %z}tl] "%rm %ru %rq" %
>> Hs %<st "%{Referer}>h" "%{User-agent}>h"
>> cache_access_log /home/squid/logs/access.log httpd
>>
>> It works great. However, I need to get the request protocol and
>> request query string into the log as well. According to the squid
>> log format documentation, I'm looking for the %rq and %rp variables.
>> But whenever I add either of those variables in, squid starts
>> complaining about syntax errors.
>>
>> For example:
>> logformat httpd %>a - %un [%{%d/%b/%Y:%H:%M:%S %z}tl] "%rm %ru %rq" %
>> Hs %<st "%{Referer}>h" "%{User-agent}>h"
>>
>> gives this ----------
>> FATAL: Can't parse configuration token: '%rq" %Hs %<st "%{Referer}>h"
>> "%{User-agent}>h"'
>>
>> Squid Cache (Version 2.5.STABLE13): Terminated abnormally.
>> CPU Usage: 0.003 seconds = 0.000 user + 0.003 sys
>> Maximum Resident Size: 0 KB
>> Page faults with physical i/o: 0
>> Abort trap (core dumped)
>>
>> Is there something wrong with the %rp and %rq variables? I'm using
>> Version 2.5.STABLE13.
>>
>> Thanks,
>> Michael Jeung
>>
>>
>
Received on Fri May 19 2006 - 15:26:35 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT