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?
3 Replies
- JRahm
Admin
Not sure in LTM, but I'd guess no. Yes in GTM, though:
bigpipe db GTM.QueryLogging enable - hoolio
Cirrostratus
You 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 - Deb_Allen_18Historic F5 AccountJust be careful of exceeding the capacity of /var with excessive logging, though...
You might want to check out hoolio's codeshare contribution about custom syslogging (Click here) and filter the messages resulting from your iRule off to a remote syslog server.
/d
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
