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

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...