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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

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