Misty_Spillers
Jun 01, 2017Nimbostratus
Debugging a website irule help
I'm trying to debug a problem with a website. what's the best way to add a whitelist to not log things I know about? Like { [class match [string tolower [HTTP::uri]] starts_with "whitelist" ] } { don't log or no nothing. Here is my current rule:
when HTTP_REQUEST {
set hostvar [HTTP::host]
set urivar [HTTP::uri]
set ipvar [IP::client_addr]
}
when HTTP_RESPONSE {
if { ([HTTP::status] starts_with "4") || ([HTTP::status] starts_with "5")} {
log local0. "$ipvar requested $hostvar $urivar and received a [HTTP::status] from [IP::server_addr]" }
}
Thanks for any help.