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
You 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.
- Stanislas_Piro2
Cumulonimbus
Hi,
you can do it with
when HTTP_REQUEST { log local0. "Request from : [IP::remote_addr] / Host requested [HTTP::host]" }
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