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!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...