-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Hi,
I successfully installed and configured last version of ModSecurtiyIIS that I found via link http://comments.gmane.org/gmane.comp.apache.mod-security.user/11184
I used 64-bit installer.
My environment: Windows 2008 Server R2 Standard; IIS 7.5
I want to set log rotation for my ModSecurityIIS audit log on daily level. I set following in modsecurity.conf:
SecAuditEngine On
SecAuditlogParts ABIJDEFHZ
SecAuditLogType Serial
I tried five different values for SecAuditLog:
- SecAuditLog "C:\waf\logs\modsec_audit.log"
- SecAuditLog "|C:\waf\rotatelogs.exe C:\waf\logs\modsec_audit.log 86400"
- SecAuditLog "|C:/waf/rotatelogs.exe C:/waf/logs/modsec_audit.log 86400"
- SecAuditLog "|C:\waf\cronolog.exe C:\waf\logs\modsec_audit.log"
- SecAuditLog "|C:/waf/cronolog.exe C:/waf/logs/modsec_audit.log"
Case 1 is working - audit log file is created and records exist.
Cases 2,3,4 and 5 are not working. In debug log (level 9) I receive information:
Audit log: Skipping request since there is nowhere to write to.
In event log (application) i receive following for case 2 (same message is for cases 3,4 and 5 - just value for SecAuditLog is different):
Syntax error in config file C:\Program Files\ModSecurity IIS\modsecurity.conf, line 198: ModSecurity: Failed to open the audit log pipe: C:\waf\rotatelogs.exe C:\waf\logs\modsec_audit.log 86400
Please help - does ModSecurtiyIIS 2.7.7 from above link can work with rotatelogs.exe and cronolog.exe? If answer is yes how to set that? If answer is no is there any alternative to set log rotation for audit log of ModSecurity IIS 2.7.7.
Thank you in advance.
Best regards,
Sasa