Splunk Search

Is it possible to run a real time search and update the missed historic data?

f2mahmud
Engager

My task is to create a real-time search, ideally to run 24/7. Now the problem arises when I close my program(not necessarily the search) and maybe start it again after a day and I need all the data I missed in the last 24 hours. There is the option of just running a normal search and get the data that I have missed, but that is the last resort. As a result, I have been trying to get that done and then get realtime events in one search; it should return the missed events and then should just resume like an all-time realtime search. I have tried setting the earliest time to 'rt-1d' but what this does is generate the results over the last 24 hours (multiple times if it falls within that window). It also shows the new events that come in(which will be in the window), but I need a way (if there is one) to get rid of the duplicate results.

Basically:
Event A - Captured in real time search
Program Closed
Event B
Program Opened
Event C-Will be captured

Simple Solution:
Run Normal Search to get B
Run Real time search to get C and beyond

What I need:
(Real Time) Search to get B and then C and beyond

What I have:
A search that has the potential to return duplicates (because of a very big time window) like
Event B
Event B
Event B
Event B
Event C- After it has been indexed
Event B
Event C - duplicates from here on
Event B
Event C
Event D-After being indexed, soon to be duplicated and so on.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...