Splunk Search

How to write a conditional search to return a table if the value of a field is X, else, it shouldn't be displayed?

rongruspe
New Member

How to have a search that returns a table if the value of a specific field is X, else, it shouldn't be shown.

Name......Value
A..............3
B..............5
C..............20

IF: Value > 10

Name.....Value
C.............20

0 Karma
1 Solution

woodcock
Esteemed Legend

Add this:

... | where Value > 10

View solution in original post

0 Karma

woodcock
Esteemed Legend

Add this:

... | where Value > 10
0 Karma

rongruspe
New Member

Thanks! Been trying eval and stats. Wasn't able to run through the where clause. Thanks!

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, ...