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
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...