Forum Discussion
Sriram_87174
Sep 18, 2015Nimbostratus
Are you trying to log the 404 error in the response packet? try using when HTTP_RESPONSE function and see if you can log 404 error.
- Sep 18, 2015/404 is a uri not a response error
- Sriram_87174Sep 18, 2015NimbostratusYou can try using HTTP::path instead of HTTP::uri when HTTP_REQUEST { if {[HTTP::path] != "/404"} { log local0. "uri = [HTTP::uri]" } }
- Sriram_87174Sep 18, 2015NimbostratusI tried with both HTTP::path and HTTP::uri - It works fine. i am using v11.4.1 BIG IP appliance.
- Sep 18, 2015/404 is the entire uri ( no query-params ) so aren't [HTTP::path] and [HTTP::uri] equivalent ?
- Sriram_87174Sep 18, 2015NimbostratusAgree, Yes that is correct you could use either. log the full uri when the request comes in before it goes to the if statement. To verify it is exactly what you expect it to be and then work out why it doesnt not match the expression for /404 ?