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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...