<?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: Getting error &amp;quot;Could not look up HOME variable. Auth tokens cannot be cached... Login failed&amp;quot; connecting a forwarder to Splunk Cloud in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253750#M48709</link>
    <description>&lt;P&gt;It turns out that this is a bash human error.&lt;BR /&gt;
'${SPLUNK_USER}:${SPLUNK_PASSWORD}' doesn't expend in bash.&lt;BR /&gt;
The expansion only happens if it is double quoted.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:57:17 GMT</pubDate>
    <dc:creator>emayssat</dc:creator>
    <dc:date>2020-09-29T10:57:17Z</dc:date>
    <item>
      <title>Getting error "Could not look up HOME variable. Auth tokens cannot be cached... Login failed" connecting a forwarder to Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253748#M48707</link>
      <description>&lt;P&gt;To install the splunkforwarder to connect to Splunk Cloud, at boot time, I run &lt;CODE&gt;splunk set servername  -auth admin:&lt;/CODE&gt; , which fails as follow:&lt;/P&gt;

&lt;P&gt;But I get the following error: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-08-29 23:21:01,589 P1647 [INFO]    + /opt/splunkforwarder/bin/splunk set servername zookeeper1.logs001msi.us-west-1a.i-250d4d60.54-183-105-58.374244366136 -auth '${SPLUNK_USER}:${SPLUNK_PASSWORD}'
2016-08-29 23:21:01,589 P1647 [INFO]    Could not look up HOME variable.  Auth tokens cannot be cached.
***
2016-08-29 23:21:01,589 P1647 [INFO]    Login failed
***
2016-08-29 23:21:01,589 P1647 [INFO]    + /opt/splunkforwarder/bin/splunk edit monitor /var/log -auth '${SPLUNK_USER}:${SPLUNK_PASSWORD}'
2016-08-29 23:21:01,589 P1647 [INFO]    Could not look up HOME variable.  Auth tokens cannot be cached.
2016-08-29 23:21:01,589 P1647 [INFO]    Login failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to get around this?&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 23:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253748#M48707</guid>
      <dc:creator>emayssat</dc:creator>
      <dc:date>2016-08-29T23:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "Could not look up HOME variable. Auth tokens cannot be cached... Login failed" connecting a forwarder to Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253749#M48708</link>
      <description>&lt;P&gt;Does the user running splunk on your forwarder have a home directory (/home/accountName) on the filesystem? If you run as the user 'splunk', there should be a directory named /home/splunk&lt;BR /&gt;
That directory should be owned by splunk as well and it's group needs to be splunk, so the account can write to it. &lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 03:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253749#M48708</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2016-08-30T03:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error "Could not look up HOME variable. Auth tokens cannot be cached... Login failed" connecting a forwarder to Splunk Cloud</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253750#M48709</link>
      <description>&lt;P&gt;It turns out that this is a bash human error.&lt;BR /&gt;
'${SPLUNK_USER}:${SPLUNK_PASSWORD}' doesn't expend in bash.&lt;BR /&gt;
The expansion only happens if it is double quoted.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-error-quot-Could-not-look-up-HOME-variable-Auth-tokens/m-p/253750#M48709</guid>
      <dc:creator>emayssat</dc:creator>
      <dc:date>2020-09-29T10:57:17Z</dc:date>
    </item>
  </channel>
</rss>

