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
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 ...