Splunk Search

need search with if condition

avikc100
Path Finder

Screen Shot 2021-06-08 at 8.57.22 PM.png

 

Am getting data in this format now.
but i need to show only those row where sum of all column values are > 500

am trying somethign like this. am new so unable to form the query, please help

index=b2b_wm_core  sourcetype=wm_woheaderdetail_log logType="header" type="proc" woCountInFile | bin woCountInFile span=10.1 | 
search if(count(woCountInFile < 70) > 500) | timechart  span=1h  count by woCountInFile
Labels (3)
0 Karma
1 Solution

avikc100
Path Finder

its working now! Appreciate!

View solution in original post

0 Karma

avikc100
Path Finder

its working now! Appreciate!

0 Karma

bowesmana
SplunkTrust
SplunkTrust

If the existing columns are what you initial expect before your >500 test, then simply add the following to the end of your query

| addtotals
| where Total>500
| fields - Total

 

0 Karma

bowesmana
SplunkTrust
SplunkTrust

If it works for you, please mark the question as solved, so others can benefit

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...