SecAuditLogParts not working: mod_security keeps logging response body
See original GitHub issueDescribe the bug
A lot rules use:
ctl:auditLogParts=+E,\
This makes the log hard to read as response body is very lengthy. Would be useful to have at least one log without response body.
Could you please consider dropping ctl:auditLogParts=+E,\
to make SecAuditLogParts
configurable?
Steps to reproduce
default:
SecAuditLogParts ABIJDEFHZ
change to:
SecAuditLogParts ABIJDFHZ
Expected behaviour
response body not logged
Actual behaviour
response body logged
Additional context
similar description https://github.com/SpiderLabs/ModSecurity/issues/819 (but probably not ModSecurity bug)
Your Environment
- CRS version (e.g., v3.2.0): v3.2.0
- Paranoia level setting: 1
- ModSecurity version (e.g., 2.9.3): v1.0.1
- Web Server and version (e.g., apache 2.4.41): nginx
- Operating System and version: Debian
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
SecAuditLogParts not working: mod_security keeps logging ...
I have set SecAuditLogParts in modsecurity.conf to just log ABFH, but the modsecurity audit log keeps logging -E- part (response body) ...
Read more >mod_security keeps logging response body - Server Fault
I have set SecAuditLogParts in modsecurity.conf to ...
Read more >mod_security keeps logging response body - Kiwix Server
I have set SecAuditLogParts in modsecurity.conf to just log ABFH, but the modsecurity audit log keeps logging -E- part (response body) which makes...
Read more >ModSecurity Handbook: Getting Started: Chapter 4. Logging
The debug log is going to be your primary troubleshooting tool, ... the amount of data that needs to be logged, as well...
Read more >ModSecurity: Logging and Debugging - NGINX
In this blog post, we describe the basics of logging and debugging with ModSecurity and provide audit log and debug log examples.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @adrelanos, thanks again your feedback.
We discussed this issue, and we think the
ctl=auditLogParts=+E
is important part of rule set, so we don’t plan to remove it.As a sidenote, I am currently writing a blogpost that is going to provide you with a way to get rid of this functionality (present in over 100 rules) for good. Give me a week or so to do this.