Splunk Search

How do I bin counts per day then show a distribution of count per day?

tpirozzi
Explorer

So if I have over the past 30 days various counts per day I want to display the following in a stats table showing the distribution of counts per bucket. IS this possible?

MY search is this

host="foo*" source="blah" some tag

host [ 0 - 200 ] [201 - 400] [401-600] [601 - 800 ] [801-1000]
X 0 10 15 4 1
Y 1 9 13 6 1
Z 5 6 10 5 4

Thanks in advance!

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

You're probably looking for something like this:

... | bin span=1d _time | stats count as temp by _time host
    | bin span=200 temp | chart count by host temp

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

You're probably looking for something like this:

... | bin span=1d _time | stats count as temp by _time host
    | bin span=200 temp | chart count by host temp
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 ...