Forum Discussion
iRule: log local0 error showing up in ltm logs
Here's the error in my logs:
tmm2 err tmm2[7592]: 01220001:3: TCL error: /Common/signal-redirect-irule - can't read "url": no such variable while executing "log local0. "$url""
Here's the iRule:
when HTTP_REQUEST
{
set hostname variable in
lower case
set hostname [string tolower
[HTTP::host]]
check if the hostname
variable is in the first Data Group
if { [class match
$hostname equals signal-fqdn-class] } {
set the HTTP::uri to the
value found in the data group
HTTP::uri [class lookup
$hostname
signal-fqdn-class]
HTTP::redirect
]
check if the hostname
variable is in the second Data Group
} elseif { [class match
$hostname equals signal4test-fqdn-class] } {
set the HTTP::uri to the
value found in the data group
HTTP::uri [class lookup $hostname
signal4test-fqdn-class]
HTTP::redirect ]
}
log local0.
"$hostname"
log local0. "$url"
- natheCirrocumulusgh0std0g,
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com