Forum Discussion
Mariusz_B
Nimbostratus
Feb 09, 2015Logging all traffic iRule.
Hello,
I have the following iRule for logging all traffic:
when CLIENT_ACCEPTED {
set vip [IP::local_addr]:[TCP::local_port]
}
when SERVER_CONNECTED {
set client "[IP::client_addr]:[T...
Michael_Jenkins
Cirrostratus
Feb 09, 2015SERVER_CONNECTED is an event that's fired when the LTM makes a connection to the backend node, so if the client connects and disconnects before the LTM ever makes a connection to the backend, you won't have those variables.
I'd recommend moving at least the
client
and snat
variables to the CLIENT_ACCEPTED event. The node
won't be available until the server connects, but you could initialize the variable in the client accepted event to some default value and then update it's value when the server connect happens.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