Skip to content
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

Implement the logging callback #17

Open
zimmerle opened this issue Dec 19, 2016 · 1 comment
Open

Implement the logging callback #17

zimmerle opened this issue Dec 19, 2016 · 1 comment

Comments

@zimmerle
Copy link
Contributor

One of the ModSecurity logging features depending on write content on the webserver logging. In order to write in the webserver log, we need to create an wrapper/callback inside this apache module, that wrapper will be called by libModSecurity, presenting some content to be saved.

The callback used with the nginx implementation is available here:
https://github.com/SpiderLabs/ModSecurity-nginx/blob/master/src/ngx_http_modsecurity_log.c#L25-L32

@csanders-git
Copy link

Log callback is specified via msc_set_log_cb(conf->modsec, ngx_http_modsecurity_log);

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

No branches or pull requests

2 participants