Splunk Enterprise

Proxy settings

splunkreal
Influencer

Hello, could you clarify where and how proxy settings should be in splunk-launch.conf or somewhere else? Also should we use begin by export?

Also does it takeover other apps specific proxy settings?

Thanks.

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

nachimistry
Path Finder

splunk-launch.conf works for this, and it's how I'd handle Python-based apps. A few specifics:

  • Use plain KEY=value lines, with no export and no quotes:
HTTPS_PROXY=http://proxy.example.com:3128
HTTP_PROXY=http://proxy.example.com:3128
NO_PROXY=localhost,127.0.0.1,.yourcorp.internal
  • splunkd reads it at startup and passes the variables to the processes it launches (scripted and modular inputs, custom search commands, Python REST handlers), so restart after editing. $SPLUNK_HOME/bin/splunk envvars shows what it sets.
  • Always include localhost and 127.0.0.1 in NO_PROXY. Lots of apps call back into splunkd on 8089, and without it those calls go to the proxy and fail in confusing ways. Add internal hosts too, like an internal LLM gateway, or that traffic will try the proxy as well.
  • It doesn't override app-specific settings. An add-on with its own proxy field passes it to the HTTP library directly, and that wins over the environment.
  • splunkd's own outbound calls (Splunkbase and so on) use [proxyConfig] in server.conf, as PickleRick said, not these variables.
0 Karma

splunkreal
Influencer

Thanks @PickleRick what about splunk-launch.conf?

* If this helps, please upvote or accept solution if it solved *
0 Karma

PickleRick
SplunkTrust
SplunkTrust

I've never tried setting those settings there. Common sense suggests that they should get inherited and might be used by python. But I have no experience with it.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

There is no single setting which will cause _all_ Splunk components use specified proxy.

Some parts of behaviour (like connecting to splunkbase) can be controlled with the [proxyConfig] section in server.conf (see the specs for server.conf for details).

Some add-ons (especially those using python's requests library) might use environment variables (you could try setting them for systemd unit).

Some add-ons have explicit configuration items for specifying proxy servers.

So it's a bit of hit and miss.

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!

Enterprise Security Watch Party: What’s New in 8.8 - Recap

Splunk Community HQ hosted a Splunk Enterprise Security Watch Party: What’s New In ES 8.8 last Thursday. I had ...

Move CrowdStrike FDR ingestion to Data Inputs with a guided migration

CrowdStrike Falcon Data Replicator data is essential for security investigations, detections, and response. It ...

Make Your Machine Data AI-Ready in Splunk

Every team is getting ready for AI agents.    Watch On-Demand   In this Tech Talk, Splunk platform specialists ...