Pranav_73262
Oct 10, 2013Nimbostratus
GTM Logging
Hi, Is there any way to log load balancing decisions of GTM either locally or remotely through HSL?
Hi, Is there any way to log load balancing decisions of GTM either locally or remotely through HSL?
You mean each query, and what the result is?
Yes... There's an (LTM) iRule that does translations from your own internal addrssing to external NAT's. That logs what was requested and what's returned (It uses the info in the DNS request & response).
Or did you want something more in depth? With various GTM info such as the GTM pool whether it was persisted etc?
If you would like to (temporarily, not for production, for debugging and development only becuase it will impact performance) you will need to have it log to syslog instead of the mysql database. By default it logs to the mysql so it can show up in AVR, but this is if you want it in the /var/log/ltm instead:
for example in 11.6
create a new logging profile under system->log->settings->profile named local-syslog
create a new dns profile under dns->delivery and enable logging and all logging options and the destination to be the profile you created in step 1
create a dns listener (or use the listener you already have) and enable the logging profile you created in step 2
log messages will show complete decision as per https://support.f5.com/kb/en-us/products/big-ip_gtm/manuals/product/gtm-implementations-11-4-0/16.html
Of course, you can create a HSL pool that is better, my instructions are just for simple debugging.