Haproxy SPOA bouncer logging remediation state in haproxy log
Hi, I wondering the best practice to know when a request gets bounced. In the old bouncer using lua, it calls a service which "override" the backend in the haproxy log. I used to check haproxy log to investigate if a request gets bounced.
With the new SPOA bouncer I do not have this information anymore, the backend is "NOSRV".
We can display the variable by adding => %[var(txn.crowdsec.remediation)] in the log-format.
There is an another way to get the remediation request per request ? Maybe I am a dinausore to need this information in haproxy log ? ^^
Thanks for help or inputs
2 Replies
Important Information
Thank you for getting in touch with your support request. To expedite a swift resolution, could you kindly provide the following information? Rest assured, we will respond promptly, and we greatly appreciate your patience. While you wait, please check the links below to see if this issue has been previously addressed. If you have managed to resolve it, please use run the command
/resolve or press the green resolve button below.Log Files
If you possess any log files that you believe could be beneficial, please include them at this time. By default, CrowdSec logs to /var/log/, where you will discover a corresponding log file for each component.
Guide Followed (CrowdSec Official)
If you have diligently followed one of our guides and hit a roadblock, please share the guide with us. This will help us assess if any adjustments are necessary to assist you further.
Screenshots
Please forward any screenshots depicting errors you encounter. Your visuals will provide us with a clear view of the issues you are facing.
© Created By WhyAydan for CrowdSec ❤️
Hey,
I havent stepped into the custom log formatting yet, but taking from coraza example you should be able to just add our stuff at the end of the log line (however, I havent tested it works with the parser yet)
this is presuming the log example is derived from haproxy default format
I just tested it on my box and it works and doesnt cause an parsing issues example