Splunk Search

How to hide some result on a table ?

mah
Builder

Hi, 

I have a search ending like this : 

| chart count over service by environment
| where prod>50 OR OR dev>50 

It returns me a table : 

serviceproddev
AAA16110
BBB2250

 

The problem is that I want to mask the 16 and 0 results and keep only results above 50. 

How can I do that ? 

Thanks !

Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @mah,

at the end of your search try to put:

| eval prod=if(prod<50,"",prod), dev=(if(dev<50,"",dev)

 Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @mah,

at the end of your search try to put:

| eval prod=if(prod<50,"",prod), dev=(if(dev<50,"",dev)

 Ciao.

Giuseppe

mah
Builder

Yes it works ! 

Thanks !

0 Karma
Get Updates on the Splunk Community!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...