Hey guys,
I’m working on a project for my Bachelor thesis and I am currently trying to understand how HAProxy works. For my project I’d like to log more information from HAProxy. My defaults are
I would like to log where every single http-Package is sent to according to my ACL. My ACL, according to my .cnf SHOULD send a package according to information in the http-body.
acl name req.body -m reg < WhatImLookingFor >
use_backend bert if name
Am I on the right track? Or do I need to change something in the source code?
Sorry, I’m a newbie to communication protocols and C.
Hey Dalu!!!
I think what you are doing is for project thesis!!!
This is the way what you have mentioned in configuration file is syslog. that log would not be sufficient for you mate…
if you really interested for so, you may enable the debug log in Makefile. and run with ./haproxy -f /etc/haproxy/haproxy.cfg -d. Alternatively, is the trace log. That are useful in your case to understand. Another option is to use sysdig. you need to install sysdig on Linux machine. and before starting haproxy open a tab and use the command : # sysdig proc.name=haproxy; that would generate the log for haproxy. which shows the http socket connection between backend server and haproxy server [ for health check, frontend, backend starting, curl related while load balancing is being performed].
Let me know if you face any issue while doing above.