Forum Discussion
Leonardo_Souza
Jun 01, 2017Cirrocumulus
First, you need to understand what is the condition you will be testing, and also how many values you will have for testing.
If just a small number of options, like up to 5, I would go for a switch. If a large number, I would go for a datagroup.
You could also reverse that, and just log when you find that condition. That could be URL, client IP, etc...
This links have information about the commands you need for switch and datagroup, and also examples with iRules using that:
https://devcentral.f5.com/wiki/irules.switch.ashx
https://devcentral.f5.com/wiki/irules.class.ashx