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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...