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!

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 ...