Specify a proxy server
Specify a proxy server
If Splunk Web is located behind a proxy server, you might have problems with Splunk Web links that attempt to access the Splunk website. For example, some Manager pages link directly to the download site for Splunk apps.
To get around this problem, you need to set the HTTP_PROXY environment variable. For permanent results, you can specify the setting in the splunk-launch.conf configuration file, located in $SPLUNK_HOME/etc/ on *nix systems and %SPLUNK_HOME%\etc\ on Windows.
In splunk-launch.conf, add this attribute/value pair:
HTTP_PROXY = <IP address or host name>:<port number>
For example:
HTTP_PROXY = 10.1.8.11:8787
Important: If your proxy server only handles HTTPS requests, you must use the following attribute/value pair:
HTTPS_PROXY = <IP address or host name>:<port number>
For example:
HTTPS_PROXY = 10.1.8.11:8888
This documentation applies to the following versions of Splunk: 4.1 , 4.1.1 , 4.1.2 , 4.1.3 , 4.1.4 , 4.1.5 , 4.1.6 , 4.1.7 , 4.1.8 , 4.2 , 4.2.1 , 4.2.2 , 4.2.3 , 4.2.4 , 4.2.5 , 4.3 , 4.3.1 , 4.3.2 , 4.3.3 , 4.3.4 , 4.3.5 , 4.3.6 , 5.0 , 5.0.1 , 5.0.2 View the Article History for its revisions.
Comments
is there a way to set proxy authentication as well?
Not sure about the correctness of this page and comments - I didn't have any luck with these settings.
What I think they should be (and what works, both through splunk and from within the bash shell) is:
http_proxy=http://:
(note the http:// prefixing the IP address and no spaces)
I also added the same value for https, so:
https_proxy=http://:
Not sure what setting an environment variable to "= :" does, but it in a shell it says "Error parsing proxy url :: Scheme missing" so I'm thinking this isn't right either
I was testing with curl https://splunkbase.splunk.com
Some times adding the http_proxy parameter may not be enough for access to the splunk base app sites through the UI as the it uses https:// url by default.
Adding this parameter fixes the issue.
https_proxy = :
For proxy authentication, check out this topic:
http://docs.splunk.com/Documentation/Splunk/latest/Security/HowSplunkSSOworks
Hope that helps!