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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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