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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...