Splunk Search

Nested transactions

RVDowning
Contributor

I have data records in the following format:

Method=OuterTransactionName Type=Start ID=12345

Method=InnerTransactionNameAAAA Type=Start ID=12345

Method=InnerTransactionNameAAAA Type=End ID=12345

Method=InnerTransactionNameBBBB Type=Start ID=12345

Method=InnerTransactionNameBBBB Type=End ID=12345
.
.
.

Method=InnerTransactionNameZZZZ Type=Start ID=12345

Method=InnerTransactionNameZZZZ Type=End ID=12345

Method=OuterTransactionName Type=End ID=12345

So, every transaction record has the same id, with the outer transaction having a method name different from the inner transaction method names. Not sure how to structure the search to both list and/or find the durations of both the outer transaction as well as the inner transactions

Tags (2)
0 Karma

somesoni2
Revered Legend

This should do it (tested on your sample logs)

your base search | transaction ID,Method startswith=Type=Start endswith=Type=End
0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...