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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...