Monitoring Splunk

I want to calculate daily license usage against a fixed quota like 800gb

lwaddep1
New Member

I want to calculate daily license usage against a fixed quota like 800gb.

Thanks,
Kanth

0 Karma

HiroshiSatoh
Champion

I modified ”Percentage of Daily License Quota Used” of DMC slightly.

(earliest=-30d@d host=ip-172-31-53-105.ec2.internal index=_internal source=*license_usage.log* type="RolloverSummary") 
| eval _time=('_time' - 43200) 
| bin _time span=1d 
| stats latest(b) AS b latest(stacksz) AS stacksz by slave, pool, _time 
| stats sum(b) AS volumeB max(stacksz) AS stacksz by _time 
| eval stacksz=800000000000
| eval pctused=round(((volumeB / stacksz) * 100),2) 
| timechart span=1d max(pctused) AS "used" fixedrange=false
0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

@Iwaddep1

Thanks for posting on Splunk Answers.

Could you give us some more information about what you are looking to do? Generally, the more information you provide, the better the chance that someone in the community could solve your problem. Plus, you'd be providing a guide for future users who may be experiencing a similar issue.

0 Karma

lwaddep1
New Member

Sure, I have this below query
| rest splunk_server=local /services/licenser/pools | rename title AS Pool | search [rest splunk_server=local /services/licenser/groups | search is_active=1 | eval stack_id=stack_ids | fields stack_id] | eval quota=if(isnull(effective_quota),quota,effective_quota) | eval "Used"=round(used_bytes/1024/1024/1024, 3) | eval "Quota"=round(quota/1024/1024/1024, 3) | eval "%used"=((used_bytes/quota)*100)| fields Pool "Used" "Quota" "%used"

I want to change "Quota" to a fixed value instead of unlimited which currently set.

0 Karma

lwaddep1
New Member

Also I want show % used against 800GB

0 Karma
Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...