Aurel
Aug 28, 2013Cirrus
Remove characters from logging Irule entry
Hello,
I would like to remove the routing domain suffix "%1" in the log file i'm creating.
Here's a sample of my Irule.
when HTTP_REQUEST { set client_ip [IP::remote_addr] set log_msg "" append log_msg "$client_ip"
The result in the log file is "192.168.1.5%1" but i need to have it without the "%1". I'm wondering if a regex could do the job inside my Irule but i'm stucked in finding a way. Any help would be appreciated Aurel