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
Get Updates on the Splunk Community!

New in Splunk Observability Cloud: Automated Archiving for Unused Metrics

Automated Archival is a new capability within Metrics Management; which is a robust usage & cost optimization ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

What's New in Splunk Observability - July 2025

What’s New?  We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what ...