All Apps and Add-ons

splunk license calc

mcbradford
Contributor

I have been using the following to give me a estimate of license usage for the day:

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" earliest=@d+30M | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

This search used to match fairly closely to what the manager would report under licensing, but now the search above is always much higher?

Does anyone know what the search is that the manager->>licensing uses?

0 Karma

mcbradford
Contributor

Yesterday

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" NOT type=RolloverSummary | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

186gb

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

248gb

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" type=RolloverSummary | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

62gb

Today

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" NOT type=RolloverSummary | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

66gb

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

156gb

index=_internal source="/opt/splunk/var/log/splunk/license_usage.log" type=RolloverSummary | eval GB=b/1024/1024/1024 | search | stats sum(GB) by pool | eval used='sum(GB)' | eval GB_Used_Today=round(used, 0) | fields GB_Used_Today

89gb

From the license manager I am seeing 66gb

What calculation is the manager using???

0 Karma

TroyJ1
Engager

Either exclude ("NOT type=RolloverSummary") or include only ("type=RolloverSummary") the RolloverSummary type from the original search. Otherwise, IIRC, you will measure close to double the usage volume.

0 Karma

TroyJ1
Engager

OK, it looks like the correct answer is to exclude the RolloverSummary type ("NOT type=RolloverSummary").

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...