<?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: How to configure Apache to proxy Splunk Javascript JDK requests from outside Splunk Web? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187915#M37511</link>
    <description>&lt;P&gt;With this httpd.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ServerName localhost:80

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /proxy/(.*) &lt;A href="https://splunk:8089/$1" target="test_blank"&gt;https://splunk:8089/$1&lt;/A&gt; [R=307,QSA]

LoadModule headers_module modules/mod_headers.so
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "application/json, application/xml, application/x-www-form-urlencoded, x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My CURL is working, either directly or via /proxy/&lt;BR /&gt;
However my JS from example arent. No session key available,&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2015 10:24:55 GMT</pubDate>
    <dc:creator>pedromvieira</dc:creator>
    <dc:date>2015-01-28T10:24:55Z</dc:date>
    <item>
      <title>How to configure Apache to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187911#M37507</link>
      <description>&lt;P&gt;How can I configure Apache to work as a Proxy for connecting to Splunk Web from outside?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEW6" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAEW6&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;PS: I´m trying login_form and login_verify examples.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://dev.splunk.com/view/SP-CAAAEWS" target="_blank"&gt;http://dev.splunk.com/view/SP-CAAAEWS&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My Apache: localhost:80&lt;BR /&gt;
My Splunk: splunk:8089 (In a Virtual Machine with port redirect)&lt;/P&gt;

&lt;P&gt;My Chrome response:&lt;/P&gt;

&lt;P&gt;Login failed:  No session key available&lt;/P&gt;

&lt;P&gt;My CURL response:&lt;/P&gt;

&lt;P&gt;{"messages":[{"type":"WARN","text":"Login failed"}]}&lt;/P&gt;

&lt;P&gt;My httpd.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ServerName localhost:80

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /proxy/(.*) https://splunk:8089/$1 [E=RU:%1,NS]

LoadModule headers_module modules/mod_headers.so
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "application/x-www-form-urlencoded, x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:39:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187911#M37507</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2020-09-28T18:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Apache to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187912#M37508</link>
      <description>&lt;P&gt;My Apache: localhost:80&lt;BR /&gt;
My Splunk: splunk:8089&lt;/P&gt;

&lt;P&gt;This is my httpd.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LoadModule headers_module modules/mod_headers.so
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /proxy/(.*) &lt;A href="https://splunk:8089/$1" target="test_blank"&gt;https://splunk:8089/$1&lt;/A&gt; [R=200,L]

ServerName localhost:80
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Jan 2015 09:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187912#M37508</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2015-01-25T09:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Apache to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187913#M37509</link>
      <description>&lt;P&gt;Hi @pedromvieira&lt;/P&gt;

&lt;P&gt;Just wanted to clarify, but is this the configuration that solved your question?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 05:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187913#M37509</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-01-27T05:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Apache to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187914#M37510</link>
      <description>&lt;P&gt;No. Even with this settings, neither Javascript examples or CURL examples are working.&lt;/P&gt;

&lt;P&gt;Normal CURL (WORKING)&lt;/P&gt;

&lt;P&gt;curl -L -k &lt;A href="https://splunk:8089/services/admin/auth/login?output_mode=json"&gt;https://splunk:8089/services/admin/auth/login?output_mode=json&lt;/A&gt; -d"username=admin&amp;amp;password=changeme"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"sessionKey":"^j7_qi7Xncap_xJQoml_^NwdagtLP3xMHSDBZDrVg2HjJ4PJ6xvmYD1P8^Om3rvTE
ILxA1xFAaElKvg3tkBzfMb9a2Cf1ZBEjUo"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Redirect CURL (NOT WORKING)&lt;/P&gt;

&lt;P&gt;curl -L -k &lt;A href="http://localhost:80/proxy/services/admin/auth/login?output_mode=json"&gt;http://localhost:80/proxy/services/admin/auth/login?output_mode=json&lt;/A&gt; -d"username=admin&amp;amp;password=changeme"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{"messages":[{"type":"WARN","text":"Login failed"}]}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Jan 2015 05:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187914#M37510</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2015-01-27T05:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Apache to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187915#M37511</link>
      <description>&lt;P&gt;With this httpd.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ServerName localhost:80

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /proxy/(.*) &lt;A href="https://splunk:8089/$1" target="test_blank"&gt;https://splunk:8089/$1&lt;/A&gt; [R=307,QSA]

LoadModule headers_module modules/mod_headers.so
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
Header always set Access-Control-Allow-Headers "application/json, application/xml, application/x-www-form-urlencoded, x-requested-with, Content-Type, origin, authorization, accept, client-security-token"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My CURL is working, either directly or via /proxy/&lt;BR /&gt;
However my JS from example arent. No session key available,&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 10:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-Apache-to-proxy-Splunk-Javascript-JDK-requests/m-p/187915#M37511</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2015-01-28T10:24:55Z</dc:date>
    </item>
  </channel>
</rss>

