Token [HTTP::uri] empty in an iRule

I have created a simple rule.

when HTTP_REQUEST {
  log local0. "This is the uri value: [HTTP::uri]"
}

All I want is that on every request log the uri in

/var/log/ltm

. But the variable is empty or at least is not showing in the log file.

Any help would be greatly appreciated.

You can try to simulate the traffic using curl and check logs.

As requested: have you got a client ssl profile, i.e. offloading the SSL connection? The bigip won’t see anything HTTP related unless you do.