Splunk Search

top with running totals

ytl
Path Finder

i have events with two fields: origin and duration

i would like to present a table with the count of each origin, along with a running total of the duration - kinda like the output of top, but with the sum of the durations of each origin as another column.

Tags (3)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

Perhaps this is what you want?

... | stats sum(duration), count by origin

If not, please provide a few sample events, and a simple sketch of the desired output

/K

View solution in original post

kristian_kolb
Ultra Champion

Perhaps this is what you want?

... | stats sum(duration), count by origin

If not, please provide a few sample events, and a simple sketch of the desired output

/K

Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...