Splunk Enterprise

CLI Command for License KEY

ikoto
Explorer

Hello,

I've installed for the first time Splunk Enterprise v10.0 . I don't have license file but a License KEY for Splunk Core.

How to set it with CLI Command on the Splunk License Manager host ?

Thanks you !

Best regards

Labels (1)

ikoto
Explorer

The person in charge of the contract with Spllunk only gave me a string of numbers and letters separated by dashes for a 50GB splunk Core instance.

So i have to ask him a license valid file ?

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @ikoto 

Theres a chance its an old-style license if you have a perpetual license although I havent seen them for many years! 

I assume it doesnt look like XML? You could *try* putting the string into a file called license.lic and then adding via CLI to see if it works but if not you will need to speak to the person who sent it to make sure its the correct license and not just the signature or entitlement name/number.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma

PrewinThomas
Motivator

@ikoto 
What you meant by license key? Key generated from Splunk for your license?

You should have a valid license file(.lic or xml).
Log into Splunk Support Portal and download the actual license file associated with your key and follow  cli command or splunk web.

$SPLUNK_HOME/bin/splunk add licenses


Regards,
Prewin
If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!

0 Karma

ikoto
Explorer

Hi !
Thanks for you reply but i only have a string KEY but not an xml license file and we don't have access to the license manager GUI.

0 Karma

livehybrid
SplunkTrust
SplunkTrust

Hi @ikoto 

You can use the following command to set the license using the CLI, but its also worth checking out the following docs page: https://help.splunk.com/en/splunk-enterprise/administer/admin-manual/9.3/manage-splunk-licenses/mana...

$SPLUNK_HOME/bin/splunk add licenses <path_to_license>/<license_name>.xml

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...