Forum Discussion
sys-team_172267
Nimbostratus
Jun 27, 2016ASM disable and log requests
Hello,
After i disabled ASM by iRule (ASM::disable) i still should see requests under "Event Logs-->Application-->Requests?
i build iRule that recognized specific URL path and disabled ASM for t...
AaronJB
Jun 27, 2016Ret. Employee
I just tested this on 12.0 with a fairly basic configuration; HTTP VS, Log All Requests logging profile attached, ASM policy set to block for the 'curl' user agent and a test request.
Once I added the iRule my request was no longer blocked and I no longer saw a log entry in the logging profile.
Your test implies the request is, indeed, being processed via the ASM module. What iRule event are you using ASM::disable in? I tested with HTTP_REQUEST.
sys-team_172267
Nimbostratus
Jun 28, 2016Thank you guys for you help,
this is my iRule:
when ASM_REQUEST_DONE
{
set x [ASM::violation_data]
if {([lindex $x 0] contains "VIOLATION_CHAR_CONV")&&([HTTP::path] equals "/request")}
{
log local0. "VIOLATION_CHAR_CONV detected"
ASM::disable
}
}
Unfortunately, I still see the requests log.
I am sure that the iRule works because I also get log in "log local0. "VIOLATION_CHAR_CONV detected"
Thank you.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects