-
Notifications
You must be signed in to change notification settings - Fork 292
ModSecurity-nginx support SecAuditLogFormat JSON ? #47
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
Comments
same here i just following compiling and fail |
Hi @johnmckinght and @truman-test, You don't need to use the |
@zimmerle I installed the following installation guide What installation guide should I look for if Json is the default output format as you said? |
Hi @truman-test, Make sure that you have the yajl library installed in your server. In the configuration summary you should have a entry that saying if the yajl was found or not. |
Hi @zimmerle ModSecurity configure./configure --with-yajl=../lloyd-yajl-66cb08c/build/yajl-2.1.0/ ModSecurity - v3.0.0+b58f713 for Linux Mandatory dependencies libInjection ....v2.9.0-799-gb58f713 GeoIP ....not found Test Utilities ....enabled |
@truman-test great!! :) |
@zimmerle |
Hi However, in the audit log, it seems not json format. Let me paste one example to you. ---x44Gha1w---H-- |
Finally, I find that the JSON format is only supported in parallel mode, not in serial mode. Source code: Wiki: Here is my settings in the configuration file. SecDebugLog /var/log/modsec_debug.log Is there any reason that JSON format is not supported in serial mode? |
@Pjack you would likely find your setup fill with error like |
@johnmckinght You may find the root cause by this command. Good luck to you. |
@zimmerle @Pjack (cc @johnmckinght ) Thanks to your help, i can log the json format. configuration file: cat /var/log/modsec_audit.log nginx-modsecurity.test.com 172.26.137.64 - - [20/Jun/2017:22:03:13 +0900] "GET /tt_test.html HTTP/1.1" 304 0 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36" 149796379390.877722 - /var/log//20170620/20170620-2203/20170620-220313-149796379390.877722 0 1571.000000 md5:199ba06aae67f381497c7664eafe407b cat /var/log/20170620/20170620-2203/20170620-220313-149796379390.877722 { |
ModSecurity-nginx support SecAuditLogFormat JSON ?
ModSecurity configure
nginx.conf
modsecurity.conf
nginx start error
The text was updated successfully, but these errors were encountered: