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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...