<?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 Unable to install Standalone Splunk when using docker-compose.yml in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/556395#M7518</link>
    <description>&lt;P&gt;docker-compose.yml :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;version: '3.9'

services:
    splunk:
        image: splunk/splunk:latest
        environment:
            - SPLUNK_START_ARGS='--accept-license'
            - SPLUNK_PASSWORD='password'
        ports:
            - 8000:8000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;running docker-compose up, i am unable to pass the ansible task:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TASK [splunk_standalone : Setup global HEC] 

fatal: [localhost]: FAILED! =&amp;gt; {
 "cache_control": "private",
 "changed": false,
 "connection": "Close",
 "content_length": "130",
 "content_type": "text/xml; charset=UTF-8",
 "date": "Sun, 20 Jun 2021 02:30:20 GMT",
 "elapsed": 0,
 "redirected": false,
 "server": "Splunkd",
 "status": 401,
 "url": "https://127.0.0.1:8089/services/data/inputs/http/http",
 "vary": "Cookie, Authorization",
 "www_authenticate": "Basic realm=\"/splunk\"",
 "x_content_type_options": "nosniff",
 "x_frame_options": "SAMEORIGIN"
}

MSG:
Status code was 401 and not [200]: HTTP Error 401: Unauthorized&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However running without docker-compose i.e.&lt;/P&gt;&lt;P&gt;docker run -it -e "ANSIBLE_EXTRA_FLAGS=-vv" -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=password splunk/splunk:latest&lt;/P&gt;&lt;P&gt;would have no issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to provide any clues as to what might be the issue?&lt;/P&gt;</description>
    <pubDate>Sun, 20 Jun 2021 02:44:09 GMT</pubDate>
    <dc:creator>pineapplebun-kw</dc:creator>
    <dc:date>2021-06-20T02:44:09Z</dc:date>
    <item>
      <title>Unable to install Standalone Splunk when using docker-compose.yml</title>
      <link>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/556395#M7518</link>
      <description>&lt;P&gt;docker-compose.yml :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;version: '3.9'

services:
    splunk:
        image: splunk/splunk:latest
        environment:
            - SPLUNK_START_ARGS='--accept-license'
            - SPLUNK_PASSWORD='password'
        ports:
            - 8000:8000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;running docker-compose up, i am unable to pass the ansible task:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TASK [splunk_standalone : Setup global HEC] 

fatal: [localhost]: FAILED! =&amp;gt; {
 "cache_control": "private",
 "changed": false,
 "connection": "Close",
 "content_length": "130",
 "content_type": "text/xml; charset=UTF-8",
 "date": "Sun, 20 Jun 2021 02:30:20 GMT",
 "elapsed": 0,
 "redirected": false,
 "server": "Splunkd",
 "status": 401,
 "url": "https://127.0.0.1:8089/services/data/inputs/http/http",
 "vary": "Cookie, Authorization",
 "www_authenticate": "Basic realm=\"/splunk\"",
 "x_content_type_options": "nosniff",
 "x_frame_options": "SAMEORIGIN"
}

MSG:
Status code was 401 and not [200]: HTTP Error 401: Unauthorized&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However running without docker-compose i.e.&lt;/P&gt;&lt;P&gt;docker run -it -e "ANSIBLE_EXTRA_FLAGS=-vv" -e SPLUNK_START_ARGS=--accept-license -e SPLUNK_PASSWORD=password splunk/splunk:latest&lt;/P&gt;&lt;P&gt;would have no issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to provide any clues as to what might be the issue?&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jun 2021 02:44:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/556395#M7518</guid>
      <dc:creator>pineapplebun-kw</dc:creator>
      <dc:date>2021-06-20T02:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install Standalone Splunk when using docker-compose.yml</title>
      <link>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/564876#M10590</link>
      <description>&lt;P&gt;I'm getting exactly the same message using&amp;nbsp;&lt;SPAN&gt;splunk/universalforwarder&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;8.2.1&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 12:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/564876#M10590</guid>
      <dc:creator>tomy8s</dc:creator>
      <dc:date>2021-08-26T12:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install Standalone Splunk when using docker-compose.yml</title>
      <link>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/564882#M10591</link>
      <description>&lt;P&gt;Do you have a Splunk server listening on the URL in the error message?&lt;/P&gt;&lt;PRE&gt;https://127.0.0.1:8089/services/data/inputs/http/http&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I found this when the targetUri for the UF was not being correctly configured.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 13:03:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/564882#M10591</guid>
      <dc:creator>tomy8s</dc:creator>
      <dc:date>2021-08-26T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install Standalone Splunk when using docker-compose.yml</title>
      <link>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/564886#M10592</link>
      <description>&lt;P&gt;Docker uses the /var filesystem to store and cache images, data, etc. Since /var is typically owned by root any container running needs read/write access to /var (or at least /var/lib/docker e.g.), which the Splunk user generally does not. The quickest fix is to grant sudo to your Splunk user.&lt;/P&gt;&lt;P&gt;Generally you will also need to create a Docker volume so that Splunk can have storage to create a virtual /opt/splunk directory within the container.&lt;/P&gt;&lt;P&gt;Some good documentation on that here:&lt;BR /&gt;&lt;A href="https://splunk.github.io/docker-splunk/STORAGE_OPTIONS.html" target="_blank"&gt;https://splunk.github.io/docker-splunk/STORAGE_OPTIONS.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 13:54:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/564886#M10592</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-08-26T13:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to install Standalone Splunk when using docker-compose.yml</title>
      <link>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/692953#M14045</link>
      <description>&lt;P&gt;Reviving a dead post here, as I'm encountering the same issue as the OP. Splunk will work with the docker command, but when I attempt with compose it get the same error.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;docker-compose.yml&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kj2011_0-1720661900267.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31672i918516DDF796BEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kj2011_0-1720661900267.png" alt="kj2011_0-1720661900267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kj2011_1-1720661937858.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31673i35E252FE837BD65C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kj2011_1-1720661937858.png" alt="kj2011_1-1720661937858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 01:39:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Unable-to-install-Standalone-Splunk-when-using-docker-compose/m-p/692953#M14045</guid>
      <dc:creator>kj2011</dc:creator>
      <dc:date>2024-07-11T01:39:40Z</dc:date>
    </item>
  </channel>
</rss>

