Forum Discussion
Thiyagu_343098
Nimbostratus
Oct 22, 2018Irule to extract the host name and it in a file
Hello All,
I'm looking for an IRULE to extract host name from the URL of client request to load balancer and log it in a file.
Could you please help me on this request?
Regards,
Thiyagu
Lee_Sutcliffe
Nacreous
Oct 22, 2018You can create log messages that are logged to /var/log/ltm
when HTTP_REQUEST {
log local. "HTTP request received from Host: [HTTP::host]"
}
Logging to other files/locations could be a risk as it may not be included in a log rotation therefore could potential fill your disk up quite quickly.
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