ASM iRule events not being triggered

Hello, I have an ASM version 11.4.0 HF5, i have an issue that the ASM iRule event actions are not being triggered. simple iRule: when ASM_REQUEST_BLOCKING { log local0. "test }.

Off course the “Trigger ASM iRule Events” has been selected in the security policy. when a violation occur, the irule is not triggered and no log in the /var/log/ltm or /var/log/asm

Any ideas!?!?!?!!? Help Please. Regards,

when ASM_REQUEST_BLOCKING { log local0. “test” }

You didn’t close the quote after test in the example you posted above.

Sorry, it is only a typing mistake here. But this is not the issue…

Syntax looks correct. Obvious questions, but I’ll ask anyway. The iRule is applied to the virtual server in question, and your ASM policy is in blocking mode?

yes the policy is in blocking and i am generating blocked violations, the iRule with ASM_Request_blocking event , binded into the VS is not being triggered.

when i tried to add HTTP_REQUEST in the same irule and log something under this event, i can see logs being generated when this event fires.

I am afraid I have to do something in the Local Traffic Policy…i don’t know

Yeah, ASM underwent some changes in v11.4. I can’t seem to dig up exactly what changed from an iRule events perspective though. I’ll keep looking around.

What does the Local Traffic policy attached look like?

the default local traffic policy when creating the security policy

i pretty much did what you did and for me it works. did you attach a logging profile? can you create your own simple policy?

yes, it is working for me after trying another violations. actually, what i was trying to do is to test the information leakage (data guard), the page gets blocked and i can see the logs in the asm event logs. But, the iRule is not getting triggered. It seems that the data guard do not use the event action “ASM_REQUEST_BLOCKING”.

Thanks,

Hey, I´ve the same problem as you and I found the solution. You must activate the usage of iRule events into the ASM policy. The answer from the following thread has solved my problem. Now the iRule event ASM_REQUEST_BLOCKING will be executed. DevCentral - An F5 Technical Community