All Apps and Add-ons

Splunk License Usage: Report on max license usage per index by day and show the peak day per index

rk60422
Explorer

I know how to pull license usage by index per day over time. That is the easy part.
Once I have that, I want to show the peak single day usage per index.

I have a summary index that captures Date, idx, GB
Example:
11/1/17, A, 1
11/2/17, A, 3
11/3/17, A, 5
11/4/17, A, 7
11/5/17, A, 9
11/1/17,B, 12
11/2/17, B, 3
11/3/17, B, 6
11/4/17, B, 8
11/5/17, B, 10
11/1/17,C, 2
11/2/17, C, 3
11/3/17, C, 16
11/4/17, C, 8
11/5/17, C, 10
11/1/17,D, 2
11/2/17, D, 3
11/3/17, D, 6
11/4/17, D, 8
11/5/17, D, 10
...
the out put I am looking for is:
11/5/17,A,9
11/1/17,B,12
11/3/17,C,16
11/5/17,D,10

0 Karma
1 Solution

rk60422
Explorer

index=[summaryindexname]_name=License_Test
| stats sum(GB) as A by Date, idx
| eventstats max(A) as B by idx
| where A=B
| dedup A idx
| sort idx
| table Date,A idx

View solution in original post

0 Karma

rk60422
Explorer

index=[summaryindexname]_name=License_Test
| stats sum(GB) as A by Date, idx
| eventstats max(A) as B by idx
| where A=B
| dedup A idx
| sort idx
| table Date,A idx

0 Karma

rk60422
Explorer

Looks like I answered my own question...

Solution is:
index=[summaryindexname]_name=License_Test
| stats sum(GB) as A by Date, idx
| eventstats max(A) as B by idx
| where A=B
| dedup A idx
| sort idx
| table Date,A idx

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

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