Mohanad
Dec 30, 2021Cirrostratus
irule to match string in /var/log/ltm
Hello
i need irule irule to match string in /var/log/ltm so i can take action
i need to match on diA
when BOTDEFENSE_ACTION {
if {[$diA equals {"[AYrQyWEAAAAACxF5RBPJyPdDICteKxbw"}]} {
set res [BOTDEFENSE::action tcp_rst]
BOTDEFENSE::action custom_response "sorry\ni am blocking you\n"
}
}
error:
01220001:3: TCL error: /Common/DevID_Logging <BOTDEFENSE_ACTION> - can't read "diA": no such variable while executing "$diA equals {"[AYrQyWEAAAAACxF5RBPJyPdDICteKxbw"}"