Hello members of the list, 

I was wondering if Haproxy custom log could log the same things as apache log 
format does ? 

Haproxy is on the top for HTTP servers farms and I would like to stop logging 
on the HTTP servers side (apache or ngnix) and consume the log made by Haproxy 
with everything I get from a typical Apache log 

I think, at that time, Haproxy does not log everything like apache will do, but 
maybe it's something than can be changed ? 

That would be nice and will save a lot of time/ressources 
In my case, this is what i'm doing : 

- Haproxy 
Loadblance to 5 HTTP servers 
Apache2 custom log with X-Forwarder-for 

- Apache2 
Each HTTP serveur runs apache2 and log http requests locally to 
access_domain_log 

Every night, merging of the log and then process the full log with Http log 
analyser like Awstats 
Store the logs to a dedicated storage for archiving 


If I could get the same HTTP information directly from Haproxy log , this will 
same us a lot of time an ressource usage. 

Haproxy logs -> log shipper -> elasticsearch /hadoop -> kibana or something 
else to display log information 

Thanks for your help 

Cordialement, 

BenoƮt G 

Reply via email to