Splunk search for Current license usage

Copy
| 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 ] | join type=outer stack_id [rest splunk_server=local /services/licenser/stacks | eval stack_id=title | eval stack_quota=quota | fields stack_id stack_quota] | stats sum(used_bytes) as used_bytes, max(stack_quota) as total_quota | eval "Used (GB)"=round(used_bytes/1024/1024/1024,3) | eval "Quota (GB)"=round(total_quota/1024/1024/1024,3)
This Splunk will show you your current daily license usage and your current daily license quota. The search outputs license usage and license quota both in bytes and GB.
0 comments

Category:

General Splunk


Tags:

rest Admin general license usage

Search Commands:

Sign in or Register to submit a comment