Log HTTP Status Codes (for Example 404)

A little irule which is helping me spotting errors while migrating configs to a10.

when HTTP_REQUEST {
set object "[HTTP::host][HTTP::path]"
}

when HTTP_RESPONSE {
if {
[HTTP::status] eq "404"
} {
log local0. "404: ${object}"
#Just to be sure....
unset object
}
}
Sign In or Register to comment.