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!

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

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

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...