<?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 log into $Splunk_Home on CMD or PowerShell (Beginner) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469897#M80817</link>
    <description>&lt;P&gt;When trying to log into splunk to get to the @root for splunk it is not recognizing the path provided.  In powershell I receive this error:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;PS C:&amp;gt; $splunk_home=C:\Program Files\Splunk&lt;/STRONG&gt;&lt;BR /&gt;
C:\Program : The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable&lt;BR /&gt;
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&lt;BR /&gt;
At line:1 char:14&lt;BR /&gt;
+ $splunk_home=C:\Program Files\Splunk&lt;BR /&gt;
+              ~~~~~~~~~~&lt;BR /&gt;
    + CategoryInfo          : ObjectNotFound: (C:\Program:String) [], CommandNotFoundException&lt;BR /&gt;
    + FullyQualifiedErrorId : CommandNotFoundException&lt;BR /&gt;
 In windows(CMD) I receive this error:&lt;BR /&gt;
C:\Program Files\Splunk\bin&amp;gt;splunk.exe envvars &amp;amp; setsplunkenv.bat&lt;BR /&gt;
'setsplunkenv.bat' is not recognized as an internal or external command,&lt;BR /&gt;
operable program or batch file.&lt;/P&gt;

&lt;P&gt;If I am missing a step please let me know&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 19:51:36 GMT</pubDate>
    <dc:creator>virggray</dc:creator>
    <dc:date>2019-12-26T19:51:36Z</dc:date>
    <item>
      <title>Unable to log into $Splunk_Home on CMD or PowerShell (Beginner)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469897#M80817</link>
      <description>&lt;P&gt;When trying to log into splunk to get to the @root for splunk it is not recognizing the path provided.  In powershell I receive this error:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;PS C:&amp;gt; $splunk_home=C:\Program Files\Splunk&lt;/STRONG&gt;&lt;BR /&gt;
C:\Program : The term 'C:\Program' is not recognized as the name of a cmdlet, function, script file, or operable&lt;BR /&gt;
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&lt;BR /&gt;
At line:1 char:14&lt;BR /&gt;
+ $splunk_home=C:\Program Files\Splunk&lt;BR /&gt;
+              ~~~~~~~~~~&lt;BR /&gt;
    + CategoryInfo          : ObjectNotFound: (C:\Program:String) [], CommandNotFoundException&lt;BR /&gt;
    + FullyQualifiedErrorId : CommandNotFoundException&lt;BR /&gt;
 In windows(CMD) I receive this error:&lt;BR /&gt;
C:\Program Files\Splunk\bin&amp;gt;splunk.exe envvars &amp;amp; setsplunkenv.bat&lt;BR /&gt;
'setsplunkenv.bat' is not recognized as an internal or external command,&lt;BR /&gt;
operable program or batch file.&lt;/P&gt;

&lt;P&gt;If I am missing a step please let me know&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 19:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469897#M80817</guid>
      <dc:creator>virggray</dc:creator>
      <dc:date>2019-12-26T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to log into $Splunk_Home on CMD or PowerShell (Beginner)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469898#M80818</link>
      <description>&lt;P&gt;Where to begin?&lt;/P&gt;

&lt;P&gt;1) The command should not start with '$'.  The '$' character is used for variable substitution in Linux shells.  Use %splunk_home% in Windows.&lt;BR /&gt;
2) Variable substitution rarely makes sense on the left side of &lt;CODE&gt;=&lt;/CODE&gt;.&lt;BR /&gt;
3) The correct variable name is SPLUNK_HOME (all upper case).&lt;BR /&gt;
4) Windows path names containing spaces should be enclosed in quotation marks.&lt;BR /&gt;
5) The full name of the program is &lt;CODE&gt;splunk.exe&lt;/CODE&gt;.&lt;BR /&gt;
6) One does not log in to Splunk from the command line, except to perform certain administrative commands.  Log in to the GUI at port 8000 of the local system.&lt;BR /&gt;
7) It is not necessary to login to Splunk to administer it.  If a command requires authentication, it will request it.  For non-interactive use, add the &lt;CODE&gt;-auth username:password&lt;/CODE&gt; option to the command.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469898#M80818</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-30T03:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to log into $Splunk_Home on CMD or PowerShell (Beginner)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469899#M80819</link>
      <description>&lt;P&gt;Hi @virggray,&lt;/P&gt;

&lt;P&gt;For PowerShell, this should probably be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; $env:SPLUNK_HOME="C:\Program Files\Splunk"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However this doesn't really achieve much (it just sets the environmental variable &lt;CODE&gt;SPLUNK_HOME&lt;/CODE&gt;).  It's unclear to me what exactly you're trying to do...are you able to clarify?&lt;/P&gt;

&lt;P&gt;If you just want to be able to run the &lt;CODE&gt;splunk&lt;/CODE&gt; CLI command from a PowerShell prompt, you need to do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$env:PATH += ";" + "C:\Program Files\Splunk\bin"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;- Jo.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Dec 2019 13:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-log-into-Splunk-Home-on-CMD-or-PowerShell-Beginner/m-p/469899#M80819</guid>
      <dc:creator>jhornsby_splunk</dc:creator>
      <dc:date>2019-12-27T13:18:12Z</dc:date>
    </item>
  </channel>
</rss>

