Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

add time constraint for web site avilability check condition

$
0
0
Referring below query: index=f5 | rex field=headers "Host: (?[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3})" | eval portal=if(cidrmatch("10.x0x.0.0/16",dest) OR cidrmatch("10.A0A.0.0/16",dest) ,"External_Portal","Internal_Portal") | stats count(eval(status="200")) AS "ok_status", count(eval(status="404" OR status="50*")) as "not_ok_status" by dest,host_url **| eval site_status = if("ok_status" < "not_ok_status" , "site_unavailable" , "site_available")** | search host_url="www.*.xxx.xx" | fields + dest host_url site_status ================================================ **| eval site_status = if("ok_status" < "not_ok_status" , "site_unavailable" , "site_available")** At this stage I want to put the time constraint that if within 5 minutes, if("ok_status" < "not_ok_status") then the site is unavailable.

Viewing all articles
Browse latest Browse all 47296

Trending Articles