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!

Index This | When is October more than just the tenth month?

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

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...