Splunk Search

Timechart value every hour + cumulative line

balash1979
Path Finder

I got the query that shows count every hour using timechart command 

    <<my query>> | timechart span=1h count(path) 

What I would like is to show both count per hour and cumulative value (basically adding up the count per hour)
How can I show the count per hour as column chart but the cumulative value as a line chart ?

--Sunray

Labels (1)
0 Karma
1 Solution

saravanan90
Contributor

This can help..

    <<my query>> | timechart span=1h count(path) | streamstats sum(count) as cumulative_data

View solution in original post

saravanan90
Contributor

This can help..

    <<my query>> | timechart span=1h count(path) | streamstats sum(count) as cumulative_data

Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...