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!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...