Splunk Search

Can we change how limit function behaves in chart command?

nyplawrencet
Engager

When using limit function in chart command, Splunk automatically adds columns and filters based on largest number.

Are we able to change to filter based on the SMALLEST number instead?

Ex:

index="_internal" | chart count over component by group limit=5

Thanks.

0 Karma
1 Solution

lguinn2
Legend

You can't change how limit works, but you can do this:

index="_internal" 
| stats count by component group 
| sort 5 count
| xyseries component group count

View solution in original post

lguinn2
Legend

You can't change how limit works, but you can do this:

index="_internal" 
| stats count by component group 
| sort 5 count
| xyseries component group count
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...