<?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 configure IIS to proxy Splunk Javascript JDK requests from outside Splunk Web? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187370#M11633</link>
    <description>&lt;P&gt;How can I configure IIS to work as a Proxy for connecting to Splunk Web from outside?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http://dev.splunk.com/view/SP-CAAAEW6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I´m trying login_form and login_verify examples.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http://dev.splunk.com/view/SP-CAAAEWS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My IIS: 127.0.0.1:8080&lt;BR /&gt;
My Splunk: 127.0.0.1:8089 (In a Virtual Machine with port redirect)&lt;/P&gt;

&lt;P&gt;My Chrome console when I submit in login_form.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; POST http://127.0.0.1:8080/proxy/services/auth/login?output_mode=json 404 (Not Found)
login_form.html:84 Login failed:  Object {response: Object, status: 404, data: "&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Stric…↵ &amp;lt;/fieldset&amp;gt; ↵&amp;lt;/div&amp;gt; ↵&amp;lt;/div&amp;gt; ↵&amp;lt;/body&amp;gt; ↵&amp;lt;/html&amp;gt; ↵", error: "Not Found"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My web.config&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;configuration&amp;gt;
    &amp;lt;system.webServer&amp;gt;
        &amp;lt;rewrite&amp;gt;
            &amp;lt;outboundRules&amp;gt;
                &amp;lt;rule name="SplunkOut" preCondition="" stopProcessing="true"&amp;gt;
                    &amp;lt;match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="(.*)://(.*):(.*)/proxy/(.*)" /&amp;gt;
                    &amp;lt;action type="Rewrite" value="{R:1}://{R:2}:8080/proxy/{R:4}" /&amp;gt;
                &amp;lt;/rule&amp;gt;
                &amp;lt;preConditions&amp;gt;
                    &amp;lt;preCondition name="ResponseIsHTML"&amp;gt;
                        &amp;lt;add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /&amp;gt;
                    &amp;lt;/preCondition&amp;gt;
                    &amp;lt;preCondition name="ResponseIsJSON"&amp;gt;
                        &amp;lt;add input="{RESPONSE_CONTENT_TYPE}" pattern="^application/json" /&amp;gt;
                    &amp;lt;/preCondition&amp;gt;
                &amp;lt;/preConditions&amp;gt;
            &amp;lt;/outboundRules&amp;gt;
            &amp;lt;rules&amp;gt;
                &amp;lt;rule name="SplunkIn" stopProcessing="true"&amp;gt;
                    &amp;lt;match url="(.*)://(.*):(.*)/proxy/(.*)" /&amp;gt;
                    &amp;lt;conditions&amp;gt;
                        &amp;lt;add input="{QUERY_STRING}" pattern="^(https?)://" /&amp;gt;
                    &amp;lt;/conditions&amp;gt;
                    &amp;lt;serverVariables&amp;gt;
                        &amp;lt;set name="HTTP_ACCEPT_ENCODING" value="" /&amp;gt;
                    &amp;lt;/serverVariables&amp;gt;
                    &amp;lt;action type="Rewrite" url="{R:1}://{R:2}:8089/proxy/{R:4}" logRewrittenUrl="true" /&amp;gt;
                &amp;lt;/rule&amp;gt;
            &amp;lt;/rules&amp;gt;
        &amp;lt;/rewrite&amp;gt;
    &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:39:24 GMT</pubDate>
    <dc:creator>pedromvieira</dc:creator>
    <dc:date>2020-09-28T18:39:24Z</dc:date>
    <item>
      <title>How to configure IIS to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187370#M11633</link>
      <description>&lt;P&gt;How can I configure IIS to work as a Proxy for connecting to Splunk Web from outside?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http://dev.splunk.com/view/SP-CAAAEW6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: I´m trying login_form and login_verify examples.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http://dev.splunk.com/view/SP-CAAAEWS
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My IIS: 127.0.0.1:8080&lt;BR /&gt;
My Splunk: 127.0.0.1:8089 (In a Virtual Machine with port redirect)&lt;/P&gt;

&lt;P&gt;My Chrome console when I submit in login_form.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; POST http://127.0.0.1:8080/proxy/services/auth/login?output_mode=json 404 (Not Found)
login_form.html:84 Login failed:  Object {response: Object, status: 404, data: "&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Stric…↵ &amp;lt;/fieldset&amp;gt; ↵&amp;lt;/div&amp;gt; ↵&amp;lt;/div&amp;gt; ↵&amp;lt;/body&amp;gt; ↵&amp;lt;/html&amp;gt; ↵", error: "Not Found"}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My web.config&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;configuration&amp;gt;
    &amp;lt;system.webServer&amp;gt;
        &amp;lt;rewrite&amp;gt;
            &amp;lt;outboundRules&amp;gt;
                &amp;lt;rule name="SplunkOut" preCondition="" stopProcessing="true"&amp;gt;
                    &amp;lt;match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="(.*)://(.*):(.*)/proxy/(.*)" /&amp;gt;
                    &amp;lt;action type="Rewrite" value="{R:1}://{R:2}:8080/proxy/{R:4}" /&amp;gt;
                &amp;lt;/rule&amp;gt;
                &amp;lt;preConditions&amp;gt;
                    &amp;lt;preCondition name="ResponseIsHTML"&amp;gt;
                        &amp;lt;add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /&amp;gt;
                    &amp;lt;/preCondition&amp;gt;
                    &amp;lt;preCondition name="ResponseIsJSON"&amp;gt;
                        &amp;lt;add input="{RESPONSE_CONTENT_TYPE}" pattern="^application/json" /&amp;gt;
                    &amp;lt;/preCondition&amp;gt;
                &amp;lt;/preConditions&amp;gt;
            &amp;lt;/outboundRules&amp;gt;
            &amp;lt;rules&amp;gt;
                &amp;lt;rule name="SplunkIn" stopProcessing="true"&amp;gt;
                    &amp;lt;match url="(.*)://(.*):(.*)/proxy/(.*)" /&amp;gt;
                    &amp;lt;conditions&amp;gt;
                        &amp;lt;add input="{QUERY_STRING}" pattern="^(https?)://" /&amp;gt;
                    &amp;lt;/conditions&amp;gt;
                    &amp;lt;serverVariables&amp;gt;
                        &amp;lt;set name="HTTP_ACCEPT_ENCODING" value="" /&amp;gt;
                    &amp;lt;/serverVariables&amp;gt;
                    &amp;lt;action type="Rewrite" url="{R:1}://{R:2}:8089/proxy/{R:4}" logRewrittenUrl="true" /&amp;gt;
                &amp;lt;/rule&amp;gt;
            &amp;lt;/rules&amp;gt;
        &amp;lt;/rewrite&amp;gt;
    &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187370#M11633</guid>
      <dc:creator>pedromvieira</dc:creator>
      <dc:date>2020-09-28T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IIS to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187371#M11634</link>
      <description>&lt;P&gt;This thread might answer: &lt;A href="https://answers.splunk.com/answers/456324/splunk-js-stack-not-working-from-external-web-page.html"&gt;https://answers.splunk.com/answers/456324/splunk-js-stack-not-working-from-external-web-page.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 21:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187371#M11634</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-11-09T21:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IIS to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187372#M11635</link>
      <description>&lt;P&gt;I have the same issue, did you find out the answer for how to configure IIS to work as a Proxy for connecting to Splunk Web from outside? Can you please share the settings on IIS server&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 20:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187372#M11635</guid>
      <dc:creator>AshChakor</dc:creator>
      <dc:date>2019-04-29T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure IIS to proxy Splunk Javascript JDK requests from outside Splunk Web?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187373#M11636</link>
      <description>&lt;P&gt;@AshChakor - what about the answer provided below? Did that work?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 13:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-configure-IIS-to-proxy-Splunk-Javascript-JDK-requests/m-p/187373#M11636</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-06-07T13:20:45Z</dc:date>
    </item>
  </channel>
</rss>

