[squid-users] logformat, User-Agent

From: Loris Boillet <lb@dont-contact.us>
Date: Fri, 25 May 2007 13:09:35 +0200

Hello,

this logformat definition in squid.conf:

logformat combined %>a ... "%{User-Agent}>h"

allow to display the User-Agent string in the squid log:

127.0.0.1 ... "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3)
Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1)"

But this string is rather long and I only need a little part of it
(productSub (20070310) for instance). Is there some option that allow to
only display a given part of the User-Agent string in the log ?

Thanks,

Loris
Received on Fri May 25 2007 - 05:09:47 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jun 01 2007 - 12:00:05 MDT