For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Walter_Kacynski's avatar
Walter_Kacynski
Icon for Cirrostratus rankCirrostratus
Aug 17, 2015

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!

1 Reply

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    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.