Splunk Search

How to skip events in a search?

fsbmain
Engager

Hi splunkers,

Problem:
We have quite big database with events ( ~3 millions events / month), so search works not that fast. For instance, a search for 6 month takes ~10 minutes. The thing is that in most cases, that's not necessary to process each event, so we came up with a possible solution.

Possible solution
We can speed up search by processing only each Nth (10th or 100th) event. For rough results that would be enough. The question is how to (is that possible at all) make such search?

0 Karma
1 Solution

David
Splunk Employee
Splunk Employee

i would search for events where date_second is equal to some given second. You can even do more combinations like (date_minute<30 date_second=11) OR (date_minute>=30 date_second=47).

This is also an area of ongoing development in the product.. Check with your SE in the future.

View solution in original post

somesoni2
Revered Legend

There is no row number in Splunk data so, taking the Nth would not be possible/efficient. I would go with David's answer to apply filter based on extracted fields, easiest ones are the date_* fields.

0 Karma

David
Splunk Employee
Splunk Employee

i would search for events where date_second is equal to some given second. You can even do more combinations like (date_minute<30 date_second=11) OR (date_minute>=30 date_second=47).

This is also an area of ongoing development in the product.. Check with your SE in the future.

fsbmain
Engager

Thanks a lot, I don't know why such a nice idea didn't visit me 🙂

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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