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 ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...