-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Host header in the logs #128
Comments
I too would find that useful. But as the logs are generated by https://github.com/corazawaf/coraza this may not be the right place for this issue. You can log all headers using die AuditLogs. If that's not overkill for you.. |
Related to: corazawaf/coraza-caddy#75 |
That's indeed very inconvenient. But it looks like we are still able to pass id if we want. I wonder if one could hack it by setting id to domain name. Or is it mandatory to be unique for each request? |
It has to be unique. |
@fprina Could you please clarify why you said that your solution stopped working? I believe that id is optional. And please share your host+id hack :) |
I guess they used the domain as prefix in the id as it is not limited by length |
Yes, it's a quite stupid hack. I define my ugly custom ID in haproxy and pass it in
Then I use Fluentd to parse and split the id and host parts in the logs. PS |
Thank you! But why did you say it stopped working? Either I misread the source code or I'm missing something |
please keep it open as i would like that feature too |
I confirm it works, in the Coraza SPOA logs I see my crafted ID. I used the current |
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
The text was updated successfully, but these errors were encountered: