On Wed, 09 Mar 2011 00:55:02 -0800 Joel Krauska <[email protected]> wrote:
> On 3/9/11 12:51 AM, Hervé COMMOWICK wrote: > > On Wed, 09 Mar 2011 00:40:12 -0800 > > Joel Krauska<[email protected]> wrote: > > > >> Has anyone worked out a way to get HAProxy to output logging in an > >> Apache "Combined Log Format"? > >> > >> Most log analysis tools out there already speak Apache log format > >> and I was hoping to avoid writing a parser for what is essentially > >> mostly the same information. > >> > >> Anyone got a work around for this situation? > >> > >> Best, > >> > >> Joel > >> > > > > Hi Joel, > > > > you can try "option httplog clf" instead of "option httplog" > > > Thanks Herve. > > Somehow I couldn't find that in the docs, but it's right > there... !$&%.. > > Is there a FAQ? > > Cheers, > > Joel > http://haproxy.1wt.eu/download/1.4/doc/configuration.txt option httplog [ clf ] Enable logging of HTTP request, session state and timers May be used in sections : defaults | frontend | listen | backend yes | yes | yes | yes Arguments : clf if the "clf" argument is added, then the output format will be the CLF format instead of HAProxy's default HTTP format. You can use this when you need to feed HAProxy's logs through a specific log analyser which only support the CLF format and which is not extensible. -- Your Network supports your *BUSINESS !* Appliances de *contrôle d'activité* et d'*optimisation* du réseau EXCELIANCE - Rule your Network ! - www.exceliance.fr ZAC des Metz - 3 Rue du petit robinson 78350 Jouy en Josas Tél: +33 1 30 67 60 74 - Fax: +33 1 75 43 40 70

