RE: Haproxy logging web requests to /var/log/messages, syslog and haproxy.log ?

From: John Marrett <JMarrett#mediagrif.com>
Date: Wed, 21 Jul 2010 12:21:49 -0400


Tom,

> It seems my haproxy configuration is logging all web
> requrests and duplicating the logging to /var/log/messages,

Haproxy doesn't control where the logs are written.

You need to adjust your syslog servers configuration and tell it where to write the logs.

I see from your config that you're using local0 and local1, it might be best to use just one local. Regardless, you'll want to configure your syslog daemon to include the local logs in a file dedicated to haproxy, you'll also want to exclude local from other log files, so that *.info for instance doesn't send your informational level haproxy messages to the system /var/log/messages and syslog files.

-JohnF Received on 2010/07/21 18:21

This archive was generated by hypermail 2.2.0 : 2010/07/21 18:30 CEST