Re: [squid-users] logformat, User-Agent

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 26 May 2007 05:54:17 +0200

fre 2007-05-25 klockan 13:09 +0200 skrev Loris Boillet:

> 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 ?

Not today, but it should be possible to extend the element part to
understand comment fields.

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

This would require a new function to extract a comment field based on
it's beginnings, and a slight change in access_log.cc to use this if the
element separator is (

Regards
Henrik

Received on Fri May 25 2007 - 21:54:23 MDT

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