Splunk Dev

How to swap Licenses via CLI?

tentontitan
New Member

I was given a developers license for my home splunk environment. I'm trying to add it via CLI because:

1) I have a separate search head and indexer.

2) I think it's good practice

3) I can't access my indexers web gui for some reason.

I uploaded the license via FTP and ran 'splunk license add Splunk.License' command. But It doesn't appear to show up in the web gui. I'm still showing the Free License, even after switching to enterprise.

What's worse: This error message popped up a few days ago. I'm unable query indexed Data and use my App to run searches (though admittedly the app may be a bit buggy):

"Streamed search execute failed because: Error in 'litsearch' command: Your Splunk license expired or you have exceeded your license limit too many times."

And I have no clue if this license will even resolve this problem.

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Is your search head acting as License server OR indexer?

0 Karma

deepashri_123
Motivator

Hey tentontitan,

You can refer the link below to add license via CLI:
http://docs.splunk.com/Documentation/Splunk/7.0.1/Admin/LicenserCLIcommands

Also you need to restart after adding license.

Let me know if this helps!!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...