ModSecurity-apache icon indicating copy to clipboard operation
ModSecurity-apache copied to clipboard

Implement the logging callback

Open zimmerle opened this issue 8 years ago • 1 comments
trafficstars

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

zimmerle avatar Dec 19 '16 19:12 zimmerle

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

csanders-git avatar Dec 25 '16 21:12 csanders-git