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
Revered Legend

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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...