Splunk Search

How to create a visualization showing event counts since beginning of the transaction, separated by time?

archier
New Member

I have transactions with varying number of events. I want a plot showing how many events occur in buckets since the beginning of the transaction, e.g. how many events in the first 5 seconds, next 5 seconds, etc.

How can I do this?

0 Karma

sundareshr
Legend

Lets assume you transactions are grouped by a txn_id. See if this is what you're looking for...

index=foo sourcetype=bar | bin span=5s _time | stats count by txn_id _time
0 Karma

archier
New Member

thanks sundareshr, it doesn't quite work, there are many transactions starting at different times

0 Karma
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 ...