Log HTTP Status Codes (for Example 404)
daniel.neubacher@xing.com
Member ✭
in aFleX
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
}
}
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
}
}
0