Search squid archive

Re: logformat, User-Agent

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

 



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

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


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

  Powered by Linux