Forum Discussion
nitass
Oct 27, 2012Employee
i 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