Forum Discussion
nitass
Mar 07, 2013Employee
sorry i did not say clearly. actually, what i meant is LB::server addr commamnd. i understand it may return null in HTTP_REQUEST event because pool member has not yet been determined in that event.
e.g.
[root@ve10:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
log local0. ""
log local0. "client [IP::client_addr]:[TCP::client_port] server [LB::server addr]"
}
when LB_SELECTED {
log local0. "client [IP::client_addr]:[TCP::client_port] server [LB::server addr]"
}
when HTTP_RESPONSE {
log local0. "conn [IP::client_addr]:[TCP::client_port] > [clientside {IP::local_addr}]:[clientside {TCP::local_port}] > [IP::remote_addr]:[TCP::remote_port]"
}
}
[root@ve10:Active] config tail -f /var/log/ltm
Mar 8 08:39:13 local/tmm info tmm[22185]: Rule myrule :
Mar 8 08:39:13 local/tmm info tmm[22185]: Rule myrule : client 172.28.19.251:42612 server
Mar 8 08:39:13 local/tmm info tmm[22185]: Rule myrule : client 172.28.19.251:42612 server 200.200.200.111
Mar 8 08:39:13 local/tmm info tmm[22185]: Rule myrule : conn 172.28.19.251:42612 > 172.28.19.252:80 > 200.200.200.111:80
Mar 8 08:39:14 local/tmm info tmm[22185]: Rule myrule :
Mar 8 08:39:14 local/tmm info tmm[22185]: Rule myrule : client 172.28.19.251:42613 server
Mar 8 08:39:14 local/tmm info tmm[22185]: Rule myrule : client 172.28.19.251:42613 server 200.200.200.101
Mar 8 08:39:14 local/tmm info tmm[22185]: Rule myrule : conn 172.28.19.251:42613 > 172.28.19.252:80 > 200.200.200.101:80