Splunk Search

How to show values ​​that are greater than 50 in a table?

Luninho
Explorer

I have the search:

| tstats count where index=fologs module IN (G*) by module
| sort -count limit=8

But I have a problem - there are several modules with name G10MIP* which always have min count 30, so I want to show only count >30 for modules with name G10MIP*


Labels (1)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi, @Luninho,

Please try below;

| tstats count where index=fologs module IN (G*) by module
| where NOT (like(module,"G10MIP%") AND count < 31)
| sort -count limit=8

 

If this reply helps you, an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi, @Luninho,

Please try below;

| tstats count where index=fologs module IN (G*) by module
| where NOT (like(module,"G10MIP%") AND count < 31)
| sort -count limit=8

 

If this reply helps you, an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...