Splunk Search

How to filter out results where an extra event is present

Traer001
Path Finder

Hello,

I have events that look like this:

2021-05-27 14:33:44 UserId:123 Begin Fix for Issue:4354657687    <-- extra/delayed event logged after fix
2021-05-27 14:33:43 UserId:123 Fix Success!
2021-05-27 14:33:01 UserId:123 Begin Fix for Issue:4354657687
2021-05-27 14:32:32 UserId:123 Begin Fix for Issue:4354657687
2021-05-27 14:32:08 UserId:123 Begin Fix for Issue:4354657687
2021-05-27 14:31:47 UserId:123 Fix Success!
2021-05-27 14:31:25 UserId:123 Begin Fix for Issue:4353228391

I am making a search to return instances where a new issue has started but has not yet been fixed. If I grab the latest event and it begins with "Begin Fix" I am currently taking that and using it to calculate the duration where an issue is considered "ongoing". However, in some cases, my events occur so that there is an extra event with the same issue id that occurs AFTER the fix has occurred. 

How should I go about this to only grab the latest event if its issue id has not been fixed yet?

Labels (4)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...