Splunk Search

Can I table the output on conditional basis?

ppanchal
Path Finder

index=adjusted| eval Variance=TOTAL_PAID_DRVR_MINUTE_CNT-PLAN_PAID_DRVR_MINUTE_CNT|eval test=if(Variance>=120,[search index=adjusted|return $test],"")||table MA_NM,SITE_CD,SITE_NM,PRMRY_SUB_TYPE_LOB_NM,PE_LOB_NM,SUB_LOB_DESC,RTE_NUM,RTE_EXECUTION_SVC_DT,DEPART_SITE_DTM,ARRIVE_SITE_DTM,TOTAL_PAID_DRVR_MINUTE_CNT,PLAN_PAID_DRVR_MINUTE_CNT,EXCPTN_REASON_DESC,STATUSCODE,STATUSDATE,Variance

Above is my search query.

I want the table the results only when Variance is >=120.

Any suggestions?

Tags (1)
0 Karma

poete
Builder

Hello,

do you wat to dislay only the rows where Variance>=120, or to display the whole table only if at least one row contains Variance>=120?

In the first case, a where close is enough before |table, on the second case, conditional display of panels sould do the trick

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...