[squid-users] Log Format

From: Michael Jeung <[email protected]>
Date: Fri, 19 May 2006 10:07:17 -0700

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 - 11:06:04 MDT

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