Forum Discussion
Walter_Kacynski
Aug 17, 2015Cirrostratus
Log iRule Name with HSL
Is it possible to log the name of the iRule and EVENT that an HSL log message is being emitted from? Using the log local0.info format shows this information.
Log local message example
log 10.7.29.232 local0.info "locallog Sent Favorite Icon!"
Aug 17 14:39:15 BIGIP-1-NON-PROD tmm[2185]: Rule /Common/SND-IHS-Access-Rule : locallog Sent Favorite Icon!
HSL formatted syslog publisher example
HSL::send $hslsyslog "HSLSYSLOG Sent Favorite Icon!"
Aug 17 14:39:15 localhost tmm[2185] HSLSYSLOG Sent Favorite Icon!
- ArieAltostratus
I'm not aware of a good way to tap into the system to get the iRule name, but you could get around it by assigning the name to a var in the iRule.
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