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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...