Splunk Dev

How to download splunk python package

any
Splunk Employee
Splunk Employee

I'm using script interface for custom REST endpoints, and it uses:

from splunk.persistconn.application import PersistentServerConnectionApplication

I understand it's a package inside splunk enterprise, but is there a chance it is uploaded to PyPI?
0 Karma

marnall
Motivator

There does not seem to be such a package on PyPi. It seems to be only implemented in Splunk Enterprise. Is there a reason you are trying to use it outside of Splunk Enterprise?

any
Splunk Employee
Splunk Employee

I'm trying to write some test, but to import the Class we could not bypass

from splunk.persistconn.application import PersistantServerApplication
0 Karma

marnall
Motivator

Does the test require you to run that Python library outside of Splunk Enterprise?

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@marnall  - No external library. Splunk ships this Splunk Python module built in.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Maximizing the Value of Splunk ES 8.x

Splunk Enterprise Security (ES) continues to be a leader in the Gartner Magic Quadrant, reflecting its pivotal ...