Forum Discussion
adam_rothschild
Nimbostratus
Oct 20, 2015irule to send to syslog and not write to log file
I would like an irule that sends to a syslog server rather than write the log to any logfile locally. So far I can get my log in /var/log/ltm and the syslog server that the box has set as the remote ...
Brad_Parker_139
Nacreous
Oct 20, 2015Don't write to the local
log with the log command. Use HSL, https://devcentral.f5.com/wiki/iRules.HSL.ashx
when SERVER_CONNECTED {
set hsl [HSL::open -proto UDP -pool ]
HSL::send $hsl "[IP::client_addr], [IP::local_addr], [IP::server_addr]"
}
when SERVER_CLOSED {
HSL::send $hsl "[IP::local_addr], [IP::server_addr]"
}
adam_rothschild
Nimbostratus
Oct 20, 2015Is there any dependency for the syslog server set in the pool above to accept HSL? Reason I ask is that I see my irule taking hits in statistics, but never see the log in syslog.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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