Knowledge Management

how can i get certain no of events in splunk ??

rakesh_498115
Motivator

Hi..

I need a splunk query to return specfic no of search results..say not like top 10 ... i need a search results from top 10 to 20 something like that..how can i get that in query ?

please help !

Tags (1)
0 Karma
1 Solution

Ayn
Legend

You can get that by using a combination of head and tail. To get result 10-20, you'd do:

... | head 20 | tail 10

View solution in original post

Ayn
Legend

You can get that by using a combination of head and tail. To get result 10-20, you'd do:

... | head 20 | tail 10
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 ...