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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...