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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...