Splunk Dev

How to use Python SDK with Splunk Free

shikhanshu
Path Finder

I am using Splunk Free (no authentication). The examples that come bundled with Python SDK, say the info.py example, invokes the client.connect method.

I have added the allowRemoteLogin = always setting in the server.conf file. How do I use the Python SDK to connect to this free Splunk instance?

With blank username and password, I get AuthenticationError. Looks like I have to tell the SDK somehow that this is a free Splunk. How do I do that?

0 Karma

theauxiliaryguy
Engager

For the free version, I just supplied username="admin" to client.connect().

splunk_service = client.connect(username="admin")

I can't reference anything for this because I found this through trial and error. Couldn't find anything useful in the Splunk Docs.

fromdev
New Member

I guess it must be the default username and password. Try

user: admin 
password: changeme
0 Karma

shikhanshu
Path Finder

No. When we first install Splunk, it comes with a trial Enterprise license, where the default credentials are what you mention. I changed that to “admin:admin” which is immaterial anyway, because I then changed the license type to Free (not enterprise trial), thereby removing any credentials/authentication mechanism.

When I visit the splunk web interface, I am sent straight to the home rather than a login page.

I have ofcourse tried using admin:changeme, admin:admin . Neither worked.

Something must be done differently in Splunk Free (pure Free license).

0 Karma
Get Updates on the Splunk Community!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...