Forum Discussion
hooleylist
Jul 04, 2012Cirrostratus
Hi Craig,
You can log directly from an iRule using HSL::open or log remote. However, that won't capture runtime errors with iRules as those aren't generated from the iRule itself-but TMM. You could testing this to confirm. But I think you'll need to configure syslog-ng to log /var/log/ltm entries to your remote syslog server. You can check these articles for details:
HSL (10.1+)
https://devcentral.f5.com/wiki/iRules.hsl__open.ashx
log remote
https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/190/iRules-Update-New-options-for-the-log-command.aspx
You can also search on AskF5 for "remote syslog" for LTM to get instructions on how to configure syslog-ng for remote logging.
Aaron