-
Notifications
You must be signed in to change notification settings - Fork 1.6k
module name not recorded in apache error.log #1135
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
Actually looking at the code i'm not quite sure as to why this is. I'm rather unsure of where Apache gleans this information from. |
The lines that you used as example, is part of the "startup banner" of ModSecurity. During the execution you still get the same behavior? Can you paste an example? |
Yes, during execution I get the same behavior. Here's an example:
|
It's a shortcoming of ModSec with Apache 2.4 I am aware of but did not fix in #840. See initial before/after in #840. It's just that my Apache writes For what is worth, you can always filter for |
repros on:
|
Yep. Exactly. |
Any ETA on a fix? Would be really helpful for logging, if this worked. |
@tomsommer There is no ETA to have it fixed, in the meanwhile I think it is safe to consider the "ModSecurity:" as suggested by @dune73 |
Right, it would just be nice with unified loglines, "client ip" is also duplicated, as described in #840 (comment) |
It depends on how you declare the module: use }; |
+1 for fixing this |
The PR #2781 appears to have successfully resolved this issue. |
Here is a sample entry from error.log written by this module:
[Tue May 03 13:27:18.000422 2016] [:notice] [pid 14:tid 139983030101888] ModSecurity for Apache/2.7.7 (http://www.modsecurity.org/) configured.
I am using the default apache2 ErrorLogFormat. In lines written by other modules, the module name appears in the second set of brackets before the log level (eg,
[pagespeed:warn]
or[core:error]
). Why does security2 appear to give an empty string here? This occurs for all error log lines for this module.The text was updated successfully, but these errors were encountered: