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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...