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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...