Forum Discussion
HSL not working
I am trying to send logs to a remote server via port 514, here is what I put into my irule:
when CLIENT_ACCEPTED { set hsl [HSL::open -proto UDP -pool syslog-server-pool]
} when SERVER_CONNECTED { HSL::send $hsl "IP accessing VIP is: [IP::client_addr]:[TCP::client_port] -- bigip made connection from [IP::local_addr]:[TCP::local_port serverside] to pool member [IP::server_addr]:[TCP::server_port]" } when i set log local.0 in each of the events, they are generating logs, which means the events are actually taking place. But i dont see any logs in my target server iam using tmm interface through a self-ip to send logs the syslog pool has member monitor setup which is green. my version of bigip is 10.2.4, i dont see any logs for HSL when the events are triggered, they are not seen on the remote server as well. Any help with this is appreciated.
2 Replies
- pete_71470
Cirrostratus
With HSL::send you need a prefix on the string to tell the syslog server how to log message (facility, severity).
Take a peek here: link text.
So for example, if you wanted to write the message to local1.info on the syslog server your HSL::send would look like this:
HSL::send $hsl "<142> IP accessing VIP..."- jamesdris
Nimbostratus
Even after setting the log type in log to be sent, nothing is showing up in the logs for any HSL::send event.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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