Installation

How to Get License Count by Cluster Peer

whitefang1726
Path Finder

HI Splunk Answers, 

Is there a way to get license count by Cluster Peer? Example if I have 3 splunk cluster, I need to get the license by cluster (location) and by index (sourcetype if possible). Internal logs doesn't include the indexer based on host (h). I'm thinking of different SPL query but no idea where I can get it. Need your help. thanks!

07-16-2024 21:14:52.451 -0500 INFO LicenseUsage - type=Usage s="test:source::/opt/splunk/var/log/test_2024-07-16.log" st="test-st" h=hosttest o="" idx="testidx" i="sadsadasdasdadasdasdasdasdasda" pool="auto_generated_pool_enterprise" b=503 poolsz=1234567891012

Labels (1)
0 Karma
1 Solution

payl_chdhry
Path Finder

I can see "i" which is the guid for indexer. Can check if that works. You would have to first manually note down the guid for each indexer and map which cluster it belongs to.

View solution in original post

whitefang1726
Path Finder

@payl_chdhry this one works. thanks! any idea what rest url to get all the guids? I saw a majority of the guids but still missing a couple of there hostnames. 

| rest /services/server/info
| rest splunk_server_group=* /services/cluster/master/peers
| rest splunk_server=* /services/search/distributed/peers
0 Karma

payl_chdhry
Path Finder

I can see "i" which is the guid for indexer. Can check if that works. You would have to first manually note down the guid for each indexer and map which cluster it belongs to.

payl_chdhry
Path Finder
You would need to create a pool and assing indexers based on pool so get it by cluster.
0 Karma

whitefang1726
Path Finder

Thanks for the response. However, I need the license usage per cluster. That's provides the total license today. 

0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @whitefang1726 

may i know if you have checked the default license dashboards at the DMC (indexing---> License Usage --- > today or history)

 

Best Regards

Sekar

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...