Re: I would like to log only specific requests and no others
Ryan Barnett <Ryan.Barnett <at> breach.com>
2010-07-06 00:42:28 GMT
Try switching the SecAuditEngine to RelevantOnly. When it is set to On, it will log all transactions regardless of whether or not a rule matches.
--
Ryan Barnett
Senior Security Researcher
SpiderLabs Research Team
Trustwave
www.trustwave.com
From: Robert Stackhouse
To: mod-security-users <at> lists.sourceforge.net
Sent: Mon Jul 05 16:14:07 2010
Subject: [mod-security-users] I would like to log only specific requests and no others
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
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
mod-security-users mailing list
mod-security-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-security-users
Commercial ModSecurity Appliances, Rule Sets and Support:
http://www.modsecurity.org/breach/index.html