Splunk Search

Time taken by multiple events in a distributed transaction

sathishthangara
New Member

Hi , We have a audit log with the information of different event types and their execution time for different customer IDs.

Something like we have checkoutEvent at the code and then it calls multiple downstream applications to validateCard , makePayments,applyPromotion etc. So execution time of checkoutEvent is time taken by our code and also time taken by downstream applications.

I am trying to create a pie chart which will show the time taken our code and downstream application response time. In order to do that i need to get the total time taken by the checkout event minus time taken by downstream application code.

Using below query i am able to get the time taken by each events
index=app_name | spath "EventStreamData.eventName" | search "EventStreamData.eventName"=CheckOutServiceEvent OR "EventStreamData.eventName"=ApplyPromotionEvent OR "EventStreamData.eventName"=ValidateCardEvent OR "EventStreamData.eventName"=CheckoutServiceEvent | timechart avg("EventStreamData.eventContext.executionTimeInMs") as "Avg Time" by "EventStreamData.eventName"

How do i include customerId in the above query and also i need to do find time taken by CheckOutServiceEvent and other down stream events . So that we can find which one is taking more time to respond in the dashboard.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...