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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...