Search squid archive

Re: Log Format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux