Search squid archive

Log Format

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

 



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