I am trying to only log requests whose REQUEST_URI is of the form
"/statusnet/api/statuses/update.xml"
Here is how I tried to do this:
SecRuleEngine On
SecAuditEngine On
SecAuditLogType Concurrent
SecAuditLogStorageDir C:/xampp/audit_log/data/
SecAuditLog C:/xampp/audit_log/index
#Log everything
SecAuditLogParts ABCDEFGHZ
#Don't want to log all requests to the audit log
SecDefaultAction "nolog,noauditlog,pass,phase:2"
#Only want to match /statusnet/api/statuses/update.xml
SecRule REQUEST_URI "^/statusnet/api/statuses/update\.xml$"
"auditlog,pass,phase:2"
Obviously, my approach is not working. I have been over the documentation
several times, but cannot find what I am looking for. Any help would be
greatly appreciated.
Thanks,
Robert
|