Splunk Search

Funnel by Field

Timeago
Explorer

... | table Field Count | sort 0 Field

For example, we have






















Field Count
n1 1
n2 10
n3 100
n4 1000

How can I make funnel like this?






















Field Count
n1 1
n2 11
n3 111
n4 1111

Value of Funnel is equal to sum of previous value of Funnel and current value of Count.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Append this:

... | streamstats sum(Count) as Count

View solution in original post

kristian_kolb
Ultra Champion

Or the built-in command accum specifically for this purpose;

... | accum count

http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Accum

/K

martin_mueller
SplunkTrust
SplunkTrust

Append this:

... | streamstats sum(Count) as Count
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...