Installation

Is there a way to access license REST calls from non-license manager?

a212830
Champion

Hi,

I want to make some license info available on my customer Search Head (SH), and the easiest way appears to be the license REST calls. Unfortunately, when I run the commands as admin on the SH, it returns zero results. Is there anyway to call these from a non-license manager search head?

| 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/quota*100,2) |eval Pool=if(Pool="auto_generated_pool_enterprise","EI License",Pool), Pool=if(Pool="ECS Licensing", "ECS License",Pool) | fields Pool "% used"
Labels (2)
0 Karma
1 Solution

somesoni2
Revered Legend

Only way to be able to run licenser REST api from a non-license master node is to add licence master node as distributed search peer to the search head. Here are the instructions for that: https://docs.splunk.com/Documentation/Splunk/6.5.2/DistSearch/Configuredistributedsearch

Please note that with this method, you would need to remove splunk_server=local portion of your search as the rest api endpoint is not local. You can either just ignore that option altogether, or user splunk_server="name of your license master".

View solution in original post

somesoni2
Revered Legend

Only way to be able to run licenser REST api from a non-license master node is to add licence master node as distributed search peer to the search head. Here are the instructions for that: https://docs.splunk.com/Documentation/Splunk/6.5.2/DistSearch/Configuredistributedsearch

Please note that with this method, you would need to remove splunk_server=local portion of your search as the rest api endpoint is not local. You can either just ignore that option altogether, or user splunk_server="name of your license master".

a212830
Champion

Thanks!

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