issue with irule
Dear Experts,
we are having an issue where application team requested us to log source IP address whenever user hits specific page. We created an irule to implement this but whenever I am hitting that page I am seeing multiple logs getting generated for one http request. Is there any thing I am doing wrong or its an issue with ltm.. earlier it also happened where application team complaint that for single connection there is multiple request coming form ltm due to which they are seeing their licensed getting over utilized.
Below is the irule and ltm log for one http request.
Please suggest:
irule
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/xyz"} { log local0. "Client IP address: [IP::client_addr]" }
}
logs:
Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:37 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1 Jan 10 14:11:38 test_box info tmm[13056]: Rule /Common/test_iRule1 : Client IP address: 1.1.1.1