Splunk Search

timechart of license used

mcbradford
Contributor

I am using the following to tell me what my license usage is when I run this search.

index=_internal source=*license_usage.log earliest=@d+30m| eval GB=b/1024/1024/1024 | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

I would like to do the same, but use a timechart to show license usage per day for the past X days.

Ideas?

Tags (1)
0 Karma

yannK
Splunk Employee
Splunk Employee

see http://wiki.splunk.com/Community:TroubleshootingIndexedDataVolume
and be aware of the difference between pre 4.2*, 4.2 and 4.3+

4.2


index=_internal source=*license_usage.log earliest=@d+30m| eval GB=b/1024/1024/1024 | timechart span=1d sum(GB) by pool

4.3


index=_internal source=*license_usage.log type=RolloverSummary | eval GB=b/1024/1024/1024 bucket _time span=1d | stats sum(GB) by _time pool

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...