<?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 Re: Set a proxy variable for Splunk to get out to the Internet in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13786#M326</link>
    <description>&lt;P&gt;For more recent versions of Splunk (for example, version 7.3 in 2019), you can set proxy values in &lt;CODE&gt;server.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[proxyConfig]
http_proxy = &lt;A href="http://proxy.example.com" target="test_blank"&gt;http://proxy.example.com&lt;/A&gt;
https_proxy = &lt;A href="https://proxy.example.com" target="test_blank"&gt;https://proxy.example.com&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/ConfigureSplunkforproxy"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/ConfigureSplunkforproxy&lt;/A&gt; for details.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 21:26:16 GMT</pubDate>
    <dc:creator>chrisherdt</dc:creator>
    <dc:date>2019-06-20T21:26:16Z</dc:date>
    <item>
      <title>How to set a proxy variable for Splunk to get out to the Internet?</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13779#M319</link>
      <description>&lt;P&gt;A site requires proxy-settings to be in place for every browser in order to go to the Internet.&lt;/P&gt;
&lt;P&gt;There doesn't appear to be any configuration in Splunk to support http_proxy.&lt;/P&gt;
&lt;P&gt;Without this, Splunk can not, for instance, browse to splunkbase (through the manager UI) to install new apps.&lt;/P&gt;
&lt;P&gt;The user Splunk runs as can set the following in their environment (e.g. ~/.bashrc): &lt;I&gt; &lt;BR /&gt;export http_proxy='&lt;A href="http://proxyaddy:port" target="_blank"&gt;http://proxyaddy:port&lt;/A&gt;' &lt;BR /&gt;export https_proxy='&lt;A href="http://proxyaddy:port" target="_blank"&gt;http://proxyaddy:port&lt;/A&gt;' &lt;/I&gt;&lt;/P&gt;
&lt;P&gt;And then when that user restarts Splunk those environment variables are passed to Splunk. This is fine when the user does a restart, but this does not work when the system is rebooted or an init is changed.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 16:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13779#M319</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2023-08-17T16:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13780#M320</link>
      <description>&lt;P&gt;On Linux, here is a work-around (though a Splunk-internal config would be ideal):&lt;/P&gt;

&lt;P&gt;Set the http_proxy variables to be exported and picked up by the init script.  It is not Linux/RHEL recommended practice to customize start scripts installed via a package manager (e.g. RPM) since they might be replaced with the next upgrade/install.&lt;/P&gt;

&lt;P&gt;Therefore the recommended solution is to edit the appropriate file in /etc/sysconfig.&lt;/P&gt;

&lt;P&gt;Unfortunately, the RPMs that Splunk distributes as of VERSION=4.1.2 BUILD=79191 does not accomodate the RHEL-recommended usage of the /etc/sysconfig directory for localized settings.&lt;/P&gt;

&lt;P&gt;Therefore, to accomodate best-practice for RHEL and add the proxy setting to make it reboot persistent do the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Edit/create the file &lt;I&gt;/etc/sysconfig/splunk&lt;/I&gt; and enter the following lines (edit the proxyaddy and port appropriate to your environment):&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;# Export local proxy settings to allow Splunk to get out&lt;/LI&gt;
&lt;LI&gt;export http_proxy='http://proxyaddy:port'&lt;/LI&gt;
&lt;LI&gt;export https_proxy='http://proxyaddy:port'&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;LI&gt;Next edit the start script &lt;I&gt;/etc/init.d/splunk&lt;/I&gt; to tell it to use the local settings file you just created (hopefully this will be added by Splunk in future versions of their RPMs&lt;/LI&gt;&lt;BR /&gt;
&lt;UL&gt;&lt;BR /&gt;
&lt;LI&gt;# Add a standard PROG var then check for the sysconfig script and run if available&lt;/LI&gt;&lt;BR /&gt;
&lt;LI&gt;PROG="splunk"&lt;/LI&gt;&lt;BR /&gt;
&lt;LI&gt;[ -f /etc/sysconfig/$PROG ] &amp;amp;&amp;amp; . /etc/sysconfig/$PROG ]&lt;BR /&gt;
&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;
&lt;/P&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;The next time you do a system restart this should work properly.  If you wanted to simulate how Splunk would be restarted by the system doing a reboot but without having to reboot you can do the following steps:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Ensure you have configured Splunk to run at reboot with the command: &lt;I&gt;splunk enable boot-start&lt;/I&gt;
&lt;/LI&gt;&lt;LI&gt;stop splunk (e.g. $SPLUNK_HOME/bin/splunk stop)&lt;/LI&gt;
&lt;LI&gt;init 1&lt;/LI&gt;
&lt;LI&gt;init 3&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 19 May 2010 02:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13780#M320</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2010-05-19T02:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13781#M321</link>
      <description>&lt;P&gt;I suspect you could add this to &lt;CODE&gt;splunk-launch.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http_proxy=http://proxy:port
https_proxy=http://proxy:port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can set other environment variables this way. &lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2010 14:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13781#M321</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-05-22T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13782#M322</link>
      <description>&lt;P&gt;Gerald,&lt;BR /&gt;
I had tried this before with no joy.  After seeing your comment, I just tried it again and still without the desired/expected result.&lt;BR /&gt;
I believe the difference is that the VAR is not necessarily something Splunk needs but something that is passed to python which then uses it during external http calls.&lt;BR /&gt;
Let me know your thoughts.  I am here onsite until Friday so can test other ideas.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2010 04:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13782#M322</guid>
      <dc:creator>sdwilkerson</dc:creator>
      <dc:date>2010-05-27T04:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13783#M323</link>
      <description>&lt;P&gt;Watch out for this one, after configuring https_proxy environment variable, the Cisco IPS script to connect to port 443 using SDEE to an IDSM was also using the proxy - and with no access from Proxy to port 443 on the IDSM all I was getting was 504 Gateway Errors in the sdee log file&lt;/P&gt;

&lt;P&gt;It would be good if there was a configuration item within the manager to specify a proxy only for splunk's access to Splunk resources on the internet.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2011 05:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13783#M323</guid>
      <dc:creator>petert2011</dc:creator>
      <dc:date>2011-06-28T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13784#M324</link>
      <description>&lt;P&gt;Hi Gerald,&lt;/P&gt;

&lt;P&gt;I tried to use this config on my Windows machine but splunkd is not communicating with the proxy.  I can access the proxy using a normal browser but not through the app.&lt;/P&gt;

&lt;P&gt;Did anyone managed to get this working?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2013 07:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13784#M324</guid>
      <dc:creator>pinoyoz</dc:creator>
      <dc:date>2013-09-18T07:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13785#M325</link>
      <description>&lt;P&gt;easy. works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2014 09:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13785#M325</guid>
      <dc:creator>seyvet</dc:creator>
      <dc:date>2014-01-29T09:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13786#M326</link>
      <description>&lt;P&gt;For more recent versions of Splunk (for example, version 7.3 in 2019), you can set proxy values in &lt;CODE&gt;server.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[proxyConfig]
http_proxy = &lt;A href="http://proxy.example.com" target="test_blank"&gt;http://proxy.example.com&lt;/A&gt;
https_proxy = &lt;A href="https://proxy.example.com" target="test_blank"&gt;https://proxy.example.com&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/ConfigureSplunkforproxy"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/ConfigureSplunkforproxy&lt;/A&gt; for details.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/13786#M326</guid>
      <dc:creator>chrisherdt</dc:creator>
      <dc:date>2019-06-20T21:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/507484#M11596</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/61049"&gt;@chrisherdt&lt;/a&gt;, as you can read in your link, this option is not for Splunk to communicate to the outside, but for Splunk 2 Splunk communication through a proxy.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"This process configures Splunk to Splunk communication through a Proxy. The settings documented here do not support interactions outside of Splunk, for example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class="li_content"&gt;Access to Splunkbase via Splunk Web&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class="li_content"&gt;Splunk external lookups&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class="li_content"&gt;Actions that make a REST API call to an external service outside of a firewall"&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 06 Jul 2020 07:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/507484#M11596</guid>
      <dc:creator>hthiel</dc:creator>
      <dc:date>2020-07-06T07:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set a proxy variable for Splunk to get out to the Internet</title>
      <link>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/654683#M17211</link>
      <description>&lt;P&gt;Thank you for this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 12:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-set-a-proxy-variable-for-Splunk-to-get-out-to-the/m-p/654683#M17211</guid>
      <dc:creator>securitypaul</dc:creator>
      <dc:date>2023-08-17T12:32:38Z</dc:date>
    </item>
  </channel>
</rss>

