Splunk Search

nested transactions?

mighdoll
New Member

I'd like to determine the duration between a transaction and a later event in the log. You could think of it as a transaction containing a transaction... Is there a clever way to do this?

Here's a stylized example. I'd like to know the amount of time spent driving w/o seat belt. The log contains the following events. I want the duration between the pair (unfastenend,start) to end.

  • seat-belt-fastened
  • seat-belt-unfastened
  • start-driving
  • end-driving
0 Karma

melting
Splunk Employee
Splunk Employee

This is doable with lookups. There is a good blog article about how to do this from Alex Raitz:
maintain state

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...