Forum Discussion
RiverFish
Altostratus
Oct 26, 2012Any incoming request (not just the initial connection)
One of the software guys has presented the following to me. Any help would be much appreciated!
"I think part of what might be going on with this is that HTTP 1.1 does not require a new c...
nitass
Employee
Oct 27, 2012i understand HTTP_REQUEST is executed on every request (not only initial one). can you add some log command?
HTTP_REQUEST event Wiki
https://devcentral.f5.com/wiki/iRules.http_request.ashx
[root@ve10:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:443
ip protocol 6
rules myrule
profiles {
clientssl {
clientside
}
http {}
tcp {}
}
}
[root@ve10:Active] config b pool foo list
pool foo {
members 200.200.200.101:80 {}
}
[root@ve10:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
log local0. "--"
}
when CLIENTSSL_HANDSHAKE {
log local0. "--"
}
when HTTP_REQUEST {
log local0. "--"
log local0. "client [IP::client_addr]:[TCP::client_port] | request [HTTP::uri]"
}
}
[root@ve10:Active] config cat /var/log/ltm
Oct 27 11:06:28 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:28 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:30 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:30 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:31 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:31 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:31 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:31 local/tmm info tmm[7926]: Rule myrule : client 172.18.205.28:46908 | request /index.html
Oct 27 11:06:31 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:31 local/tmm info tmm[7926]: Rule myrule : client 172.18.205.28:46908 | request /f5.gif
Oct 27 11:06:32 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:32 local/tmm info tmm[7926]: Rule myrule : client 172.18.205.28:46908 | request /favicon.ico
Oct 27 11:06:32 local/tmm info tmm[7926]: Rule myrule : --
Oct 27 11:06:32 local/tmm info tmm[7926]: Rule myrule : client 172.18.205.28:46908 | request /favicon.ico
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
