Forum Discussion
omega7_69107
Nimbostratus
Jun 22, 2007Logging Connections
Is it possible to turn on a level of logging in the GUI that will log connections and which node they get load balanced to, or does that have to be done through an irule?
hoolio
Cirrostratus
Jun 22, 2007You would indeed need to use a rule to log client connections through a virtual server and which node the request was sent to. Here is an example:
when CLIENT_ACCEPTED {
log local0. "client: [IP::remote_addr]:[TCP::remote_port] -> dest: [IP::local_addr]:[TCP::local_port]"
}
when SERVER_CONNECTED {
log local0. "client: [IP::local_addr]:[TCP::local_port] -> dest: [IP::remote_addr]:[TCP::remote_port]"
}You could combine this into one log statement using this:
when SERVER_CONNECTED {
log local0. "client: [IP::client_addr]:[TCP::client_port] -> dest: [IP::remote_addr]:[TCP::remote_port]"
}
The output of logging to local0.* is /var/log/ltm.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
