Forum Discussion
scottjf8_82523
Nimbostratus
Dec 13, 2010How to log what IP a "snat automap" is using
All Using the "snat automap" command in an iRule - if we have more than 1 Self IP, how can we log which IP is being used for a snat?
hoolio
Cirrostratus
Feb 03, 2011Hi Adrian,
I would only log once per connection in SERVER_CONNECTED--not in both SERVER_CONNECTED and SERVER_CLOSED. If you want to log this for every connection, in production, you should consider logging directly to a syslog server (or syslog pool). In 10.1+, you can use the HSL::send command to do this:
http://devcentral.f5.com/wiki/default.aspx/iRules/HSL__send.html
For older versions, you can log remotely with the log command:
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/aff/5/afv/topic/aft/1176784/afc/1201556/Default.aspx
Aaron
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