Forum Discussion

Archana's avatar
Archana
Icon for Nimbostratus rankNimbostratus
Dec 18, 2023

F5 BIG-IP, Unable to get Traffic logs for the Webserver added to F5

Hello All, 

We have launched F5 BIG-IP and added webserver as Virtual server in it. Status of Virtual server and pool is coming as Active and enabled. 

Configured Virtual server to log all requests in Security>Policies. 

Created below iRules and attached it to Virtual server, 
--------------------------------------------------------------------------------------------
when CLIENT_ACCEPTED {
set client "[IP::client_addr]:[TCP::client_port]"
set vip "[IP::local_addr]:[TCP::local_port]"
set snat "unknown"
set node "unknown"
}

when SERVER_CONNECTED {
set snat "[IP::local_addr]:[TCP::local_port]"
set node "[IP::server_addr]:[TCP::server_port]"
}

when CLIENT_CLOSED {
log connection info
log local0.info "Client $client -> VIP: $vip -> SNAT: $snat -> Node: $node"
}
------------------------------------------------------------------------------------------------------------------- 

In statistics, there is no traffic coming for Pool and virtual server even after Virtual server is active. Could you please let us know what needs to be configured here to get the Locak traffic logs. 

Your help will be of great assist to us. 

Thanks 
Muthu Mahadevan 

  • Hi Muthu,

    Are you able to ping the virtual server IP address? And if so, what do you see on the cli when performing a curl -v http(s)://<virtual server ip> ?
    Use http of https depending on port 80 or 443.

    Cheers,
    Kees