All Apps and Add-ons

splunk-lauch.conf variables, with python

splunkreal
Influencer

Hello, is there a documentation regarding several splunk-launch.conf variables for python like SSL_VERIFY,  SSL_CERT_FILE, REQUESTS_CA_BUNDLE...?

Thanks for your help.

* If this helps, please upvote or accept solution if it solved *
Labels (3)
0 Karma

tscroggins
SplunkTrust
SplunkTrust

Hi @splunkreal,

Are you trying to modify default Splunk behavior, or are you writing custom Python code for Splunk?

As @PickleRick wrote, splunk-launch.conf.spec contains environment variable descriptions, and splunk-launch.conf contains variable definitions.

Not all environment variables in the documentation are Splunk variables, and not all variables used by other components are in the documentation.

If you're unsure of your default Splunk Python version, you can check directly.

In Splunk Enterprise 10.6.1.1 for Linux, for example:

$ $SPLUNK_HOME/bin/splunk cmd python -V
Python 3.13.11

That leads us to:

https://docs.python.org/3.13/using/cmdline.html#environment-variables

In some cases, you'll need to search PEP-specific documentation. You'll find PYTHONHTTPSVERIFY in PEP-493:

https://peps.python.org/pep-0493/#feature-environment-based-configuration

In Spunk, SSL_VERIFY and SSL_CERT_FILE probably belong to OpenSSL, and REQUESTS_CA_BUNDLE belongs to the Python requests module.

For SSL_VERIFY and SSL_CERT_FILE:

$ $SPLUNK_HOME/bin/splunk cmd openssl version
OpenSSL 3.5.9 29 Sep 2026 (Library: OpenSSL 3.5.9 29 Sep 2026)

https://docs.openssl.org/3.5/man7/openssl-env/

For REQUESTS_CA_BUNDLE:

$ /opt/splunk/bin/splunk cmd python -c '
> import requests
> print(requests.__version__)
> '
2.32.5

https://requests.readthedocs.io/en/stable/user/advanced/#ssl-cert-verification

PYTHONHTTPSVERIFY is used by the Python urllib package. You must disable certificate verification programmatically when using the requests module.

All other variables in splunk-launch.conf.spec belong to Splunk.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

I don't think there is a specific documentation for those. 

The important bit of the docs is this:

* Environment variables set here will be available to all Splunk 
  platform processes, barring operating system limitations.

So they should be passed on to processed spawned from splunkd and have their typical meaning.

One thing which is not documented (and I have not tested it) is whether there is any expansion happening with those settings. And if it is, when it is done.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Kubernetes Alerts That Work Out of the Box with AutoDetect detectors in Splunk ...

A deployment rolls out slowly, one pod sits not ready for a few minutes, and whoever is on call gets an alert ...

Observability at Your Fingertips Directly From Splunk Platform—for Free

At .conf, we announced our roadmap to bring observability foundations to Splunk Platform. Bringing metrics and ...