<?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: Cleaning Indexes not working in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25301#M22031</link>
    <description>&lt;P&gt;Hi MHibbin,&lt;/P&gt;

&lt;P&gt;Can you please explain the homepath issue? I did not see any mention of it in splunk doc regarding cleaning and deleting index.&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;/P&gt;

&lt;P&gt;Samiul&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 09:43:54 GMT</pubDate>
    <dc:creator>samiulamin123</dc:creator>
    <dc:date>2018-03-07T09:43:54Z</dc:date>
    <item>
      <title>Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25294#M22024</link>
      <description>&lt;P&gt;Hi SplunkBase&lt;BR /&gt;
Trying out the free version (4.2.4) on my Windows 7 64bit client and as you can guess, hit an index limit (500mb). I wanted to run the clean commnand but get the following message window when running the following command(s):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;C:\Program Files\Splunk\bin&amp;gt;.\splunk stop &amp;lt;&amp;lt; works !&lt;BR /&gt;
C:\Program Files\Splunk\bin&amp;gt;.\splunk help clean &amp;lt;&amp;lt; popup&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Popup Window:&lt;BR /&gt;
Title: C:\Program Files\Splunk\bin\splunk.exe&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Could not look up HOMEPATH variable.  Auth tokens cannot be cached.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Any help appreciated. &lt;/P&gt;

&lt;P&gt;Regads, John&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 10:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25294#M22024</guid>
      <dc:creator>johnness</dc:creator>
      <dc:date>2011-11-30T10:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25295#M22025</link>
      <description>&lt;P&gt;I don't think you need the "&lt;CODE&gt;.\&lt;/CODE&gt;" I normally just cd to the bin directory, as you have done, and then run a command like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\&amp;gt;Program Files\Splunk\bin&amp;gt;splunk.exe clean eventdata -index &amp;lt;index name&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So you are looking for&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\&amp;gt;Program Files\Splunk\bin&amp;gt;splunk.exe help clean
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To stop the command opening in a popup, and I think this will help with the HomePath issue, as I assume you installed Splunk with admin priviledges, you should also run the CMD prompt as Administrator...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Start" &amp;gt;&amp;gt; Type CMD in search bar &amp;gt;&amp;gt; Right-click CMD &amp;gt;&amp;gt; "Run as administrator"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can check your HOMEPATH using the following command (not to be confused with the homePath variable used in Splunk)...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;SET HOMEPATH
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Mine on my dev laptop is...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;HOMEPATH=\Users\Matt
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 10:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25295#M22025</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-11-30T10:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25296#M22026</link>
      <description>&lt;P&gt;Hi MHibbin&lt;/P&gt;

&lt;P&gt;Your answer was part of the solution. I still can't get used to the fact that starting a prompt as "Administrator" is not the same as opening a Command Prompt with an administrative account via: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;runas /user:domain\user * cmd&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Your answer solved the popup problem but not the HOMEPATH issue. Following is the output after using &lt;CODE&gt;splunk help clean&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;C:\Program Files\Splunk\bin&amp;gt;splunk help clean&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Could not look up HOMEPATH variable.  Auth tokens cannot be cached.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;An error occurred: Could not determine user's home directory because HOMEPATH shell variable is not set.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 11:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25296#M22026</guid>
      <dc:creator>johnness</dc:creator>
      <dc:date>2011-11-30T11:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25297#M22027</link>
      <description>&lt;P&gt;Hi MHibbin&lt;/P&gt;

&lt;P&gt;Your answer was only part of the solution. I still can't get used to the fact that starting a command prompt as "Administrator" is not the same as opening a Command Prompt with an administrative account via: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;runas /user:domain\user * cmd&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Your answer solved the popup problem but not the HOMEPATH issue. Following is the Command Prompt output after using &lt;CODE&gt;splunk help clean&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;C:\Program Files\Splunk\bin&amp;gt;splunk help clean&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Could not look up HOMEPATH variable.  Auth tokens cannot be cached.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;An error occurred: Could not determine user's home directory because HOMEPATH&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;shell variable is not set.&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;There are various homepath variables defined in the &lt;CODE&gt;C:\Program Files\Splunk\etc\system\default\indexes.conf file&lt;/CODE&gt;, but what to change?&lt;BR /&gt;
I currently have no indexes.conf file in the &lt;CODE&gt;C:\Program Files\Splunk\etc\system\local&lt;/CODE&gt; directory, because I am still using the basic installation.&lt;/P&gt;

&lt;P&gt;And I have no &lt;CODE&gt;Homepath&lt;/CODE&gt; in my environment variables.&lt;/P&gt;

&lt;P&gt;Thanks for the first hint. Looking forward to the complete solution.&lt;/P&gt;

&lt;P&gt;Regards, John&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 11:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25297#M22027</guid>
      <dc:creator>johnness</dc:creator>
      <dc:date>2011-11-30T11:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25298#M22028</link>
      <description>&lt;P&gt;Puzzled. Did your answer change? Ok you get full marks. &lt;/P&gt;

&lt;P&gt;I set HOMEPATH to C:\Temp and the then missing HOMEDRIVE to C: which seems to have solved my issue.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 11:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25298#M22028</guid>
      <dc:creator>johnness</dc:creator>
      <dc:date>2011-11-30T11:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25299#M22029</link>
      <description>&lt;P&gt;on the elevated Command Prompt enter&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SET HOMEPATH=C:\Temp
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And because you'll get an error message about the missing HOMEDRIVE just&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SET HOMEDRIVE=C:
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And all is well.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 11:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25299#M22029</guid>
      <dc:creator>johnness</dc:creator>
      <dc:date>2011-11-30T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25300#M22030</link>
      <description>&lt;P&gt;I changed the formatting, and added the part about HOMEPATH, I too had a similar issue like this previously (and had forgotten about about the SET HOMEPATH part, however I had edited my answer before seeing your answer :0) ).&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2011 11:57:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25300#M22030</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2011-11-30T11:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning Indexes not working</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25301#M22031</link>
      <description>&lt;P&gt;Hi MHibbin,&lt;/P&gt;

&lt;P&gt;Can you please explain the homepath issue? I did not see any mention of it in splunk doc regarding cleaning and deleting index.&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;/P&gt;

&lt;P&gt;Samiul&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 09:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Cleaning-Indexes-not-working/m-p/25301#M22031</guid>
      <dc:creator>samiulamin123</dc:creator>
      <dc:date>2018-03-07T09:43:54Z</dc:date>
    </item>
  </channel>
</rss>

