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!

Index This | What travels the world but is also stuck in place?

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

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...