-
Notifications
You must be signed in to change notification settings - Fork 46
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
Compatibility with ModSecurity version 2.9.1 #34
Comments
Does this affect the audit logs? |
I just don't have the time to look at this now @zimmerie, thanks for bringing it to the projects attention though! Perhaps yourself or some prior contributors @MWilkinson @breml could take a look? |
I quickly scrolled through owasp-modsecurity/ModSecurity#840 and as far as I understand, this affects mainly error.log and not audit.log format. @zimmerle can you confirm? |
Hi @breml, The only change that seems relevant to you is the fact that now we have this new line:
This happens to appear on the "section H" of the audit logs. |
I believe I'm seeing this issue. I'm noticing this issue with section H parsing above 2.9.0. Field names like auditLogTrailer.Action are normal but there is a field name called " This results in a bunch of new unique field names, which logstash/elastic didn't like. for now I've edited my elastic template to allow more field names as I look at the regex, but I figure you would be able to fix this much easier than I could. If I figure it out I will update. Edit, it appears this is happening due to the "ModSecurity:" section of the Apache-Error line having a colon. The section H is split on value_split => ":" so that section of the audit log trailer seems to create the unwanted behavior with the parsing thereof. |
Please submit a PR if you have a patch |
If I figure out a good way to handle it, I will. Thank you. |
I've submitted a pull request that works well enough for me. I will not be offended if you do not like it :) I opted to go with dropping that line from the raw section H, prior to splitting that section. I did this because the valuable data in that one line, as far as I could tell, was already extracted otherwise. I haven't been able to find a better way to contact you, but wanted to thank you for this project. I use it with mlogc and logstash http input plugin (behind nginx https) to ship logs to an elk stack from several remote sensors. It's been an awesome replacement to auditconsole so far. Cheers. |
Should be addressed by 1.2.2 |
Hi Guys,
I am following the project for a while, congrats!
Yesterday we have released ModSecurity version 2.9.1. There was a modification in the logs that might affect you. The issue owasp-modsecurity/ModSecurity#840 contains more details about it.
Also, in v2.9.1 there is this possibility to save the audit logs in JSON format, not sure if the format is structured in the shape that you need for elasticsearch, but may be useful.
The text was updated successfully, but these errors were encountered: