<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get Splunk to work behind a proxy in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71392#M2358</link>
    <description>&lt;P&gt;I need to configured Splunk (running on RHEL6) to work behind a proxy, I tried the recommended approach and it didn't work. On each I restarted Splunk, also note yum-cron/updates works fine.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;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.&lt;BR /&gt;
In splunk-launch.conf, add this attribute/value pair:&lt;BR /&gt;
http_proxy = &lt;IP address="" or="" host="" name=""&gt;:&lt;PORT number=""&gt; &lt;BR /&gt;
For example:&lt;BR /&gt;
http_proxy = 10.1.8.11:8787&lt;BR /&gt;
I then tried this:&lt;BR /&gt;
added to  opt/splunk/etc/system/default/prefs.conf&lt;BR /&gt;
proxy=&lt;A href="http://proxy.local:80/" target="_blank"&gt;http://proxy.local:80/&lt;/A&gt;&lt;BR /&gt;
proxy_username=xxxx&lt;BR /&gt;
proxy_password=xxxxx&lt;/PORT&gt;&lt;/IP&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Questions&lt;/P&gt;

&lt;P&gt;1)  On Linux, which is the correct file to add the proxy settings? I have seen atleast 3 files mentioned, being:&lt;BR /&gt;
splunk-launch.conf&lt;BR /&gt;
prefs.configuration&lt;BR /&gt;
editing the /etc/init.d/splunk startup script&lt;/P&gt;

&lt;P&gt;2)  Does the proxy environment variable follow a typical Linux format?&lt;BR /&gt;
For example, are these valid?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;proxy=&lt;A href="http://proxy.local:80/" target="_blank"&gt;http://proxy.local:80/&lt;/A&gt;&lt;BR /&gt;
proxy_username=a_user&lt;BR /&gt;
proxy_password=a_password&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Acquire::http::proxy "&lt;A href="http://a_user:a_password@proxy.local:80/" target="_blank"&gt;http://a_user:a_password@proxy.local:80/&lt;/A&gt;";&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;What is the correct why to achieve access from behind a proxy?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:30:27 GMT</pubDate>
    <dc:creator>mikebrooker</dc:creator>
    <dc:date>2020-09-28T12:30:27Z</dc:date>
    <item>
      <title>How to get Splunk to work behind a proxy</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71392#M2358</link>
      <description>&lt;P&gt;I need to configured Splunk (running on RHEL6) to work behind a proxy, I tried the recommended approach and it didn't work. On each I restarted Splunk, also note yum-cron/updates works fine.&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;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.&lt;BR /&gt;
In splunk-launch.conf, add this attribute/value pair:&lt;BR /&gt;
http_proxy = &lt;IP address="" or="" host="" name=""&gt;:&lt;PORT number=""&gt; &lt;BR /&gt;
For example:&lt;BR /&gt;
http_proxy = 10.1.8.11:8787&lt;BR /&gt;
I then tried this:&lt;BR /&gt;
added to  opt/splunk/etc/system/default/prefs.conf&lt;BR /&gt;
proxy=&lt;A href="http://proxy.local:80/" target="_blank"&gt;http://proxy.local:80/&lt;/A&gt;&lt;BR /&gt;
proxy_username=xxxx&lt;BR /&gt;
proxy_password=xxxxx&lt;/PORT&gt;&lt;/IP&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Questions&lt;/P&gt;

&lt;P&gt;1)  On Linux, which is the correct file to add the proxy settings? I have seen atleast 3 files mentioned, being:&lt;BR /&gt;
splunk-launch.conf&lt;BR /&gt;
prefs.configuration&lt;BR /&gt;
editing the /etc/init.d/splunk startup script&lt;/P&gt;

&lt;P&gt;2)  Does the proxy environment variable follow a typical Linux format?&lt;BR /&gt;
For example, are these valid?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;proxy=&lt;A href="http://proxy.local:80/" target="_blank"&gt;http://proxy.local:80/&lt;/A&gt;&lt;BR /&gt;
proxy_username=a_user&lt;BR /&gt;
proxy_password=a_password&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Acquire::http::proxy "&lt;A href="http://a_user:a_password@proxy.local:80/" target="_blank"&gt;http://a_user:a_password@proxy.local:80/&lt;/A&gt;";&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;What is the correct why to achieve access from behind a proxy?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71392#M2358</guid>
      <dc:creator>mikebrooker</dc:creator>
      <dc:date>2020-09-28T12:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Splunk to work behind a proxy</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71393#M2359</link>
      <description>&lt;P&gt;1) &lt;CODE&gt;http_proxy=proxy.local:80&lt;/CODE&gt; in &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/admin/Specifyaproxyserver"&gt;splunk-launch.conf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2) splunk uses urllib2 then it should support the following parameters &lt;CODE&gt;http_proxy=a_user:a_password@proxy.local:80&lt;/CODE&gt; but you will need to try as i am not sure :&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2012 20:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71393#M2359</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-09-26T20:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Splunk to work behind a proxy</title>
      <link>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71394#M2360</link>
      <description>&lt;P&gt;&lt;CODE&gt;http_proxy=a_user:a_password@proxy.local:80&lt;/CODE&gt; worked for me (I also set the same value as https_proxy)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 01:19:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-get-Splunk-to-work-behind-a-proxy/m-p/71394#M2360</guid>
      <dc:creator>sworisbreathing</dc:creator>
      <dc:date>2013-08-06T01:19:55Z</dc:date>
    </item>
  </channel>
</rss>

