Forum Discussion
Yugandhar
Nimbostratus
Oct 16, 2018iRule to Log all the HTTP Requests.
Hi,
Can we log each HTTP request (GET / POST) coming to a VS i.e. when a client connects to a virtual server on port 80 then can we add a log entry for every HTTP request from that connection or...
youssef1
Cumulonimbus
Oct 17, 2018Hi,
You can use this:
when HTTP_REQUEST {
log local0. "LOGS: VS Name: [virtual]"
log local0. "LOGS: Request: [HTTP::method] [HTTP::host][HTTP::uri]"
foreach aHeader [HTTP::header names] {
log local0. "LOGS: $aHeader: [HTTP::header value $aHeader]"
}
}
You will retrieve Virtual Name, Method, Request and all request header.
Regards,
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
