Splunk Search

How to get the first transaction after an event of a different kind occurs (e.g. service starts up)?

marnee
Explorer

I want to find the first transaction that occurs after a different type of event.

Let's say we have this event:

"Service ready"

Then we have these events:

traceId=123 "Authentication started"

traceId=123 "Authentication complete"

I want to find this transaction:

sourcetype=mytype

| transaction traceId startswith="Authentication started" endswith="Authentication complete"

But I want to filter these transaction and only see the first one that occurs after the "Service ready" event.

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...