Skip to content

Add custom leading text to audit log lines #3432

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

Open
wants to merge 1 commit into
base: v3/master
Choose a base branch
from

Conversation

szedenik-adam
Copy link

what

This PR introduces a new property: SecAuditLogHeader, that allows audit logs to have a customizable text that is prepended to each line.
Acts as a basic version of Apache HTTP Server's LogFormat.

why

In Kubernetes, the pods' log is taken from stdout and to use applications that directly log to stdout, we need to differentiate each log source (in this case, ModSecurity's audit log and the application's own log).

references

https://kubernetes.io/docs/concepts/cluster-administration/logging/

Copy link

sonarqubecloud bot commented Aug 4, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant