Splunk Search

Find events in a different index related by time

splunkranger
Path Finder

I need to find events in Index B that happened withing 5 minutes of events in Index A.

Unfortunately I do not have anyway to join them other than time ranges. Can you help me figure this out?

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Try this:

index=A something | localize timebefore=5m timeafter=5m | map search="search earliest=$starttime$ latest=$endtime$ index=B"

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Try this:

index=A something | localize timebefore=5m timeafter=5m | map search="search earliest=$starttime$ latest=$endtime$ index=B"

splunkranger
Path Finder

That worked! Thank you!!!!

0 Karma
Get Updates on the Splunk Community!

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 ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...