Forum Discussion
iRule Checking for No Value
- Oct 27, 2022
local0. goes to the LTM log:
tail -f /var/log/ltm
Not sure I completely understand. the sec-ch-mobile header has no value and is not an empty string? I don't think it can be both of these. Try logging what the value actually is:
when HTTP_REQUEST {
foreach x [string tolower [HTTP::header names]] {
if { $x starts_with "sec-ch" } {
log local0. "header($x) == |[HTTP::header $x]|"
}
}
}
I put the pipes in there to show if there's actually just white space. Still technically a non-empty string, not equal to "".
Hi Kevin, any idea how do i access the logs? I am accessing via putty and when i am in the tmsh, i tried to quit tmsh and the whole command prompt just closes.. 😞
- Kevin_StewartOct 27, 2022
Employee
local0. goes to the LTM log:
tail -f /var/log/ltm
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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