<?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: Splunk Enterprise installation fails using official docker image on kubernetes with &amp;quot;Login failed&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394858#M70468</link>
    <description>&lt;P&gt;Hey@ajna,&lt;/P&gt;

&lt;P&gt;Can you try checking the internal logs of splunk for any error.&lt;BR /&gt;
The path for it is: $SPLUNK_HOME$/var/log/splunk&lt;BR /&gt;
You need to check splunkd.log&lt;/P&gt;</description>
    <pubDate>Fri, 28 Sep 2018 04:56:51 GMT</pubDate>
    <dc:creator>deepashri_123</dc:creator>
    <dc:date>2018-09-28T04:56:51Z</dc:date>
    <item>
      <title>Splunk Enterprise installation fails using official docker image on kubernetes with "Login failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394857#M70467</link>
      <description>&lt;P&gt;We are trying to run Splunk Enterprise on Kubernetes. We have a Helm chart that uses the official docker image (currently 7.1.2). We are using the following env vars to initialize Splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;          env:
            - name: SPLUNK_START_ARGS
              value: "--accept-license --answer-yes --seed-passwd ourpassword"
            - name: SPLUNK_USER
              value: root
            - name: SPLUNK_ENABLE_LISTEN
              value: "9997"
            - name: SPLUNK_ADD
              value: tcp 1514
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk appears to start and displays the message&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Waiting for web server at &lt;A href="http://127.0.0.1:8000" target="test_blank"&gt;http://127.0.0.1:8000&lt;/A&gt; to be available..... Done


If you get stuck, we're here to help.
Look for answers here: &lt;A href="http://docs.splunk.com" target="test_blank"&gt;http://docs.splunk.com&lt;/A&gt;

The Splunk web interface is at &lt;A href="http://container-name:8000" target="test_blank"&gt;http://container-name:8000&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then a moment later we get the message&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Login failed
Stopping splunkd...
Shutting down.  Please wait, as this may take a few minutes.
...
Stopping splunk helpers...

Done.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What login is failing? What do we need to do to correct this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 03:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394857#M70467</guid>
      <dc:creator>ajna</dc:creator>
      <dc:date>2018-09-28T03:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise installation fails using official docker image on kubernetes with "Login failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394858#M70468</link>
      <description>&lt;P&gt;Hey@ajna,&lt;/P&gt;

&lt;P&gt;Can you try checking the internal logs of splunk for any error.&lt;BR /&gt;
The path for it is: $SPLUNK_HOME$/var/log/splunk&lt;BR /&gt;
You need to check splunkd.log&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 04:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394858#M70468</guid>
      <dc:creator>deepashri_123</dc:creator>
      <dc:date>2018-09-28T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise installation fails using official docker image on kubernetes with "Login failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394859#M70469</link>
      <description>&lt;P&gt;I found this in the logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AuthenticationManagerSplunk - Login failed. Incorrect login for user: admin
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Sep 2018 20:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394859#M70469</guid>
      <dc:creator>ajna</dc:creator>
      <dc:date>2018-09-28T20:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise installation fails using official docker image on kubernetes with "Login failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394860#M70470</link>
      <description>&lt;P&gt;It is a known issue - &lt;A href="https://github.com/splunk/docker-splunk/issues/62"&gt;https://github.com/splunk/docker-splunk/issues/62&lt;/A&gt;&lt;BR /&gt;
It has a hardcoded login and password &lt;CODE&gt;admin:changeme&lt;/CODE&gt;, that is used for several commands, including &lt;CODE&gt;SPLUNK_ENABLE_LISTEN&lt;/CODE&gt;, see &lt;A href="https://github.com/splunk/docker-splunk/blob/master/enterprise/entrypoint.sh#L103"&gt;https://github.com/splunk/docker-splunk/blob/master/enterprise/entrypoint.sh#L103&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Workarounds are:&lt;BR /&gt;
1. use &lt;CODE&gt;changeme&lt;/CODE&gt; as a seed password&lt;BR /&gt;
2. Do not use environment variables for configuration.&lt;BR /&gt;
3. Build your own image. &lt;BR /&gt;
4. Wait a week to see what's new is coming after .conf18 (there are will be some announcements for the docker image). &lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 22:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394860#M70470</guid>
      <dc:creator>outcoldman</dc:creator>
      <dc:date>2018-09-28T22:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise installation fails using official docker image on kubernetes with "Login failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394861#M70471</link>
      <description>&lt;P&gt;I changed my config to &lt;BR /&gt;
&lt;CODE&gt;env:&lt;BR /&gt;
            - name: SPLUNK_START_ARGS&lt;BR /&gt;
              value: "--accept-license --answer-yes --seed-passwd changeme"&lt;BR /&gt;
            - name: SPLUNK_USER&lt;BR /&gt;
              value: splunk&lt;BR /&gt;
            - name: SPLUNK_ENABLE_LISTEN&lt;BR /&gt;
              value: "9997"&lt;BR /&gt;
            - name: SPLUNK_ADD&lt;BR /&gt;
              value: tcp 1514&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and everything started working&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 22:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394861#M70471</guid>
      <dc:creator>ajna</dc:creator>
      <dc:date>2018-09-28T22:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Enterprise installation fails using official docker image on kubernetes with "Login failed"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394862#M70472</link>
      <description>&lt;P&gt;My answer should be valid for Docker image version(s): splunk/splunk:7.3.3(-redhat)&lt;BR /&gt;
I've noticed this in entrypoint.sh and and the message during container startup which led me into "SPLUNK_PASSWORD" env. var.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    then
        echo "WARNING: No password ENV var.  Stack may fail to provision if splunk.password is not set in ENV or a default.yml"
    fi
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This set of environment variables worked for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      SPLUNK_START_ARGS: --accept-license --answer-yes
      SPLUNK_ENABLE_LISTEN: 9997
      SPLUNK_ADD: tcp 1514
      SPLUNK_USER: root
      #if custom admin password, env var required for &amp;gt;= 7.3.x
      SPLUNK_PASSWORD: your-custom-password
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Dec 2019 14:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Enterprise-installation-fails-using-official-docker-image/m-p/394862#M70472</guid>
      <dc:creator>digitalbankingp</dc:creator>
      <dc:date>2019-12-09T14:23:00Z</dc:date>
    </item>
  </channel>
</rss>

