Skip to content

ModSecurity was not compiled with JSON support #2116

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
yuynagforhacker opened this issue Jun 6, 2019 · 1 comment
Closed

ModSecurity was not compiled with JSON support #2116

yuynagforhacker opened this issue Jun 6, 2019 · 1 comment
Assignees
Labels
3.x Related to ModSecurity version 3.x duplicate Ops. Somebody else already hit that bump workaround available The issue has either a temporary or permanent workaround available
Milestone

Comments

@yuynagforhacker
Copy link

Hello,
I used ModSec v3 and the log format is json.
But when I view the log, I see the following information:
{"error":"ModSecurity was not compiled with JSON support."}

There is no yajl environment during installation. After installing yajl environment, the compiler shows that yajl 2.0 has been found, but restarting nginx after make is still the problem.

How should I solve this problem?

thanks All.

@victorhora victorhora self-assigned this Jun 8, 2019
@victorhora victorhora added 3.x Related to ModSecurity version 3.x duplicate Ops. Somebody else already hit that bump labels Jun 8, 2019
@victorhora victorhora added this to the v3.0.4 milestone Jun 8, 2019
@victorhora victorhora added the workaround available The issue has either a temporary or permanent workaround available label Jun 8, 2019
@victorhora
Copy link
Contributor

@yuynagforhacker, based on the description of your issue, it seems like you only need to recompile ModSecurity in order to enable JSON support. The YAJL library components needs to be present at compile time so that JSON support is enabled. See #1914 (comment) and #2035 (comment) for further info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Related to ModSecurity version 3.x duplicate Ops. Somebody else already hit that bump workaround available The issue has either a temporary or permanent workaround available
Projects
None yet
Development

No branches or pull requests

2 participants