Forum Discussion
Aboodi_1041
Jun 30, 2012Nimbostratus
irule meaning
Sorry for the newbie question but what does this iRule do ? couldn't find a good explanation : rule Persist_Universal { when HTTP_REQUEST { persist...
nitass
Jun 30, 2012Employee
hope this helps.
[root@ve1024:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:80
ip protocol 6
rules myrule
profiles {
http {}
tcp {}
}
}
[root@ve1024:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. "\[HTTP::uri\]: [HTTP::uri]"
log local0. "\[findstr [HTTP::uri] ? 8 3\]: [findstr [HTTP::uri] ? 8 3]"
}
}
[root@ve1024:Active] config curl -I http://172.28.19.79/test?1234567890abcdef
HTTP/1.1 404 Not Found
Date: Sat, 30 Jun 2012 04:04:46 GMT
Server: Apache/2.2.3 (CentOS)
Content-Type: text/html; charset=iso-8859-1
[root@ve1024:Active] config tail -f /var/log/ltm
Jun 29 21:04:34 local/tmm info tmm[4861]: Rule myrule : [HTTP::uri]: /test?1234567890abcdef
Jun 29 21:04:34 local/tmm info tmm[4861]: Rule myrule : [findstr /test?1234567890abcdef ? 8 3]: 890
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects