Forum Discussion
J_Aldrich
Apr 21, 2021Altostratus
iRule help.
How do I connect these two iRule events together so that "ACCESS_POLICY_AGENT_EVENT" event occurs only when the "HTTP_REQUEST" event occurs? Any help would be greatly appreciated. See below: when...
- Apr 21, 2021
Hi J_Aldrich,
when HTTP_REQUEST { set status 0 if { [HTTP::uri] equals "/loginpage" }{ set status 1 log local0. "LOGIN PAGE accessed by [IP::remote_addr]" } } when ACCESS_POLICY_AGENT_EVENT { if { $status } { log local0. "Status: $status" if { [ACCESS::policy agent_id] eq "example" } { # ... } } }
Apr 21, 2021
Hi J_Aldrich,
when HTTP_REQUEST {
set status 0
if { [HTTP::uri] equals "/loginpage" }{
set status 1
log local0. "LOGIN PAGE accessed by [IP::remote_addr]"
}
}
when ACCESS_POLICY_AGENT_EVENT {
if { $status } {
log local0. "Status: $status"
if { [ACCESS::policy agent_id] eq "example" } {
# ...
}
}
}
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