Forum Discussion
How to log more specific traffic in irule
- May 06, 2021
Hi Ajinkya,
I think the following should work:
"/abg/127/abc.html" {
pool HTTP_POOL_4
log local0. "URI /abg/127/abc/html matched. Client IP [IP::client_addr]"
}
If you have a look here, there is a good explanation of the "switch" command, as well as some examples on what it can look like: https://clouddocs.f5.com/api/irules/switch.html
Additionally, if you indeed have a 100+ entries in the switch statement, you may want to have a look at working with DataGroups, rather than the switch statement - it can improve performance quite a bit (if performance is a factor of course) You can find more info about this here: https://clouddocs.f5.com/api/irules/class.html
Hope this helps.
Hi Alex,
It is working!!!😃
Thanks you so much for your help and also for sharing useful links!!
- AlexBCTMay 07, 2021Cumulonimbus
Great to hear!
Would be great if you can flag the above solution as an answer, so the thread can be closed and may help others with the same problem.
Recent Discussions
Related Content
* 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