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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...