Forum Discussion
sriramgd_111845
Dec 07, 2010Nimbostratus
Logging in case of http 404 and 50* responses
We use an F5 in our production environment. We use one big iRule to route traffic to the relevant pools based on the url etc.
Recently we have started using some limited amount of on-the-gri...
hooleylist
Dec 07, 2010Cirrostratus
Hi Sriram,
That looks about as efficient as it could be with one exception: I'd try to avoid looping through every header name in HTTP_RESPONSE unless you have to and don't know the full header name you want to log. If you do know the name, you can just use HTTP::header value "OurCustomHeader".
Also, a pool member hasn't been selected by the time HTTP_REQUEST is triggered and a serverside connection hasn't been established. So IP::server_addr won't work. You could log the server IP in HTTP_RESPONSE though using IP::server_addr.
Aaron
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