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!

Observability Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestSplunk APM's New Tag Filter ExperienceSplunk APM has updated ...

Security Newsletter Updates | March 2023

 March 2023 | Check out the latest and greatestUnify Your Security Operations with Splunk Mission Control The ...

Platform Newsletter Highlights | March 2023

 March 2023 | Check out the latest and greatestIntroducing Splunk Edge Processor, simplified data ...