corazawaf / coraza-spoa

EXPERIMENTAL: A wrapper around the OWASP Coraza WAF for HAProxy's SPOE filters
Apache License 2.0
87 stars 18 forks source link

Host header in the logs #128

Open fprina opened 1 week ago

fprina commented 1 week ago

Hi All,

Does anyone know if it’s possible to include the Host header in Coraza logs?

I’m using a container that logs to stdout and need a way to assign each matched rule to the site the request is coming from. Lookup the coraza id in the haproxy logs need too much effort for the current needs

Before the last change, I was generating an ugly unique-id in haproxy that included the Host header, but now that Coraza generates the ID, I’ve lost that ability.

Any suggestions would be appreciated.

Thanks