Forum Discussion
health monitor question
OK fixed the irule as
when HTTP_REQUEST { log local0. [HTTP::uri] if {[string tolower [HTTP::uri]] starts_with "/solr/spruat_slave" } { log local0. "matched [HTTP::uri]" pool mhf_pool_172.16.250.72-slave }
}
But now I am trying add a OR statement and getting syntax error
01070151:3: Rule [/Finance/test_sol] error: /Finance/test_sol:3: error: [parse error: PARSE syntax 190 {syntax error in expression "([string tolower [HTTP::uri]] starts_with "/solr/spruat_slav...": unexpected operator &}][{([string tolower [HTTP::uri]] starts_with "/solr/spruat_slave") || ([string tolower [HTTP::uri]] starts_with “/sol”) }]
when HTTP_REQUEST {
log local0. { "http::uri" [HTTP::uri] } if {([string tolower [HTTP::uri]] starts_with "/solr/spruat_slave") || ([string tolower [HTTP::uri]] starts_with “/sol”) } { log local0. "matched [HTTP::uri]" pool mhf_pool_172.16.250.72-slave } }
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
