Splunk Search

Find orphaned transactions in a series

madisand
New Member

I have the data in the following format

Msg Id Event Timestamp ( Format Example)
123 A 24/06/2019 10:02
123 B 24/06/2019 10:02
123 C 24/06/2019 10:02
123 D 24/06/2019 10:02
123 E 24/06/2019 10:02
125 A 24/06/2019 10:02
125 B 24/06/2019 10:02
125 C 24/06/2019 10:02
126 X 24/06/2019 10:02
126 E 24/06/2019 10:02
127 A 24/06/2019 10:02
127 B 24/06/2019 10:02
127 C 24/06/2019 10:02
127 D 24/06/2019 10:02
127 E 24/06/2019 10:02

I need to find a transaction that is not yet complete for last 15 minutes using pattern matching. i.e I need to check transactions that begin with A, has C and not E and from current time how long since the event C is generated. I tried something but getting weird results like non evicted transactions are also coming in my search output

Search |transaction msgid startswith="A" endswith="E" mvlist=t, keepevicted=true|search closed_txn=0|eval find_orphan_ind=mvfind(event,"C")|search find_orphan_ind=*|eval my_missed_msg=mvindex(timestamp,find_orphan_ind)

Tags (1)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...