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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...