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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...