Forum Discussion
BIG-IP / Virtual Server for UDP & TCP DNS Loadbalancing / extracting client IPs
- Apr 26, 2023
Have you tried using this guide to send HSL via the management interface?
K50040950: Configuring the BIG-IP system to send high-speed logs through the management interface
Have you tried using this guide to send HSL via the management interface?
K50040950: Configuring the BIG-IP system to send high-speed logs through the management interface
Unfortunately I doesn't work. The iRule code example states the following
when CLIENT_ACCEPTED {
set my_hsl [HSL::open -publisher /<partition>/<log publisher>]
}
when HTTP_REQUEST {
HSL::send $my_hsl "Request: [HTTP::host][HTTP::uri]"
log local0.info "Request: [HTTP::host][HTTP::uri]"
}
when CLIENT_CLOSED {
unset my_hsl
}
In my case I have UDP DNS traffic that I want to log to a remote syslog. However my iRule code only has the "when CLIENT_ACCEPTED" statement where I set the HSL variable and send the logs via HSL::send. Maybe this is the problem?
I configured the HSL pool in the Common partition as well as the log configuration (publisher, destination etc.). The iRule is configured in another partition. Is such a configuration valid or problematic?
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