How to log http request with specific url

I want to log http request with specific url, including legal and illegal. I need to see these requests in Security->Event Logs->Application->Requests on WEBUI.

Does anyone know how to implement this? Can I use iRule?

Hello,

Normally you can do it by creating a specific ASM “Logging Profile” and apply a filter on the URI.

You shou create your profile from the menu “Security > Event Logs > Logging Profile > Create a new…”

Then you should apply it on the VS on the “Security” Tab

Regards

Jad

Thanks, I know this way. What I want to know is, can I implement this function by iRule? Is there any API I can use to apply the Logging Profile?