Skip to content

ModSecurity-nginx support SecAuditLogFormat JSON ? #1395

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

Closed
truman-test opened this issue Apr 20, 2017 · 2 comments
Closed

ModSecurity-nginx support SecAuditLogFormat JSON ? #1395

truman-test opened this issue Apr 20, 2017 · 2 comments
Assignees

Comments

@truman-test
Copy link

ModSecurity-nginx support SecAuditLogFormat JSON ?

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
  • SecLang tests ....b58f713

Optional dependencies

  • GeoIP ....not found
  • LibCURL ....not found
  • YAJL ....found
    -lyajl, -DWITH_YAJL -I../lloyd-yajl-66cb08c/build/yajl-2.1.0//include
  • LMDB ....not found
  • LibXML2 ....found v2.9.1
    -lxml2 -lz -lm -ldl, -I/usr/include/libxml2 -DWITH_LIBXML2

Other Options

  • Test Utilities ....enabled
  • SecDebugLog ....enabled
  • afl fuzzer ....disabled
  • library examples ....enabled
  • Building parser ....disabled

nginx.conf

modsecurity on;
modsecurity_rules_file /usr/local/nginx/conf/modsecurity.conf

modsecurity.conf

SecAuditLogFormat JSON

nginx start error

nginx: [emerg] "modsecurity_rules_file" directive Rules error. File: /usr/local/nginx/conf/modsecurity.conf. Line: 256. Column: 23. Invalid input: SecAuditLogFormat JSON in /usr/local/nginx/conf/nginx.conf:118

@zimmerle zimmerle self-assigned this Apr 24, 2017
@zimmerle
Copy link
Contributor

Hi @truman-test,

libModSecurity default output is JSON, you no longer need to use a configuration flag to select it.

@truman-test
Copy link
Author

truman-test commented May 11, 2017

@zimmerle
thanks for your answer. but output isn't json format

I installed the following installation guide
https://github.com/SpiderLabs/ModSecurity/wiki/Compilation-recipes

What installation guide should I look for if Json is the default output format as you said?

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