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!

Which Splunk AI cost tool do I need? Token and Cost Monitoring vs. Tokenomics vs. ...

"What are we spending on AI?" sounds like a simple question. In practice, it's more complex and actually ...

See What’s New in Splunk Observability Cloud on December 9

Join Splunk Community HQ and the Splunk Observability HQ chapter on December 9, 10:00–11:00 a.m. PT, for the ...

What You Read the Most in 2026: Splunk Lantern's Most Popular Articles, Top Themes, ...

Splunk Lantern is Splunk's customer success center that provides practical guidance from Splunk experts on key ...