Installation

How do I see used vs available license usage?

lwaddep1
New Member

I have the below search against a particular heavy index which lists its daily volume consumed.

index=_internal source=*license_usage.log type=Usage | eval totalMB = b/1024/1024  | eval totalGB = totalMB /1024 | rename idx as index | search index="xxx-xxx" | timechart span=1d sum(totalGB) by index 

_time             xxx-xxx       
------------------------------------
date             200GB          

I want the above query tweaked to compares the daily usage against 1000GB and list the output like below

_time              xxx-xxx            Total            %Used    
---------------------------------------------------------------------------------------------
date               200GB              1000GB           20%

Thanks,
Laks

Labels (1)
0 Karma
1 Solution

harishalipaka
Motivator

Hi @lwaddep1
Can you try like this.

index=_internal source=*license_usage.log type=Usage | eval totalMB = b/1024/1024 | eval totalGB = totalMB /1024 | rename idx as index | search index="xxx-xxx" | timechart span=1d sum(totalGB) as used_gb by index | eval total=1000 | eval used=used_gb/total |eval "used%"=used +"%"
Thanks
Harish

View solution in original post

0 Karma

harishalipaka
Motivator

Hi @lwaddep1
Can you try like this.

index=_internal source=*license_usage.log type=Usage | eval totalMB = b/1024/1024 | eval totalGB = totalMB /1024 | rename idx as index | search index="xxx-xxx" | timechart span=1d sum(totalGB) as used_gb by index | eval total=1000 | eval used=used_gb/total |eval "used%"=used +"%"
Thanks
Harish
0 Karma

lwaddep1
New Member

Thanks for the quick update, i am able to see like below, but used% is missing.

_time xxx-xxx total

date 200GB 1000

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...