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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...