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 (4)
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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...