<?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: Restarted Splunk Now Missing All Data in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173957#M9130</link>
    <description>&lt;P&gt;It appears all of the datafiles are owned appropriatly (see original post above, edited for ls -l).&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2013 19:42:23 GMT</pubDate>
    <dc:creator>andrewkenth</dc:creator>
    <dc:date>2013-12-10T19:42:23Z</dc:date>
    <item>
      <title>Restarted Splunk Now Missing All Data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173953#M9126</link>
      <description>&lt;P&gt;I restarted Splunk and now I am missing all of my data before today (this data was loaded after I restarted I believe). &lt;/P&gt;

&lt;P&gt;Can someone help me to understand what happend (or could have happend) here?&lt;/P&gt;

&lt;P&gt;Everything seems to be owned correctlly:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[root@wnl-svr184b var]# ls -l /apps/wcm-splunk/var/lib/splunk
total 92
drwx------ 6 wcsplunku wcsplunku 4096 Nov  5 15:26 audit
-rw------- 1 wcsplunku wcsplunku    2 Dec 10 12:53 _audit.dat
drwx------ 2 wcsplunku wcsplunku 4096 Nov  5 15:26 authDb
drwx------ 6 wcsplunku wcsplunku 4096 Nov  5 15:26 blockSignature
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 _blocksignature.dat
drwx------ 6 wcsplunku wcsplunku 4096 Nov  7 08:20 charlesriver
-rw------- 1 wcsplunku wcsplunku    2 Dec 10 12:53 charlesriver.dat
drwx------ 6 wcsplunku wcsplunku 4096 Nov  7 14:39 defaultdb
drwx------ 8 wcsplunku wcsplunku 4096 Dec 10 14:28 fishbucket
drwx------ 2 wcsplunku wcsplunku 4096 Nov  5 15:26 hashDb
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 history.dat
drwx------ 6 wcsplunku wcsplunku 4096 Nov  5 15:26 historydb
-rw------- 1 wcsplunku wcsplunku    2 Dec 10 12:53 _internal.dat
drwx------ 6 wcsplunku wcsplunku 4096 Nov  5 15:26 _internaldb
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 main.dat
drwx------ 3 wcsplunku wcsplunku 4096 Dec 10 14:17 persistentstorage
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 summary.dat
drwx------ 6 wcsplunku wcsplunku 4096 Nov  5 15:26 summarydb
drwx------ 6 wcsplunku wcsplunku 4096 Nov  6 11:06 test
drwx------ 6 wcsplunku wcsplunku 4096 Nov  8 09:44 testapp
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 testapp.dat
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 test.dat
-rw------- 1 wcsplunku wcsplunku    1 Dec 10 12:53 _thefishbucket.dat
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2013 17:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173953#M9126</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2013-12-10T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Restarted Splunk Now Missing All Data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173954#M9127</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Important: don't run the commands below if you aren't sure what they do. You could end up changing owner:group permissions on your entire system which is a pain in the arse.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Without much info to go on...it sounds like you might have restarted splunk as the wrong user. Are you using Linux? I am and I've done this before. On my set-up I run Splunk as the user 'Splunk'. All the files &amp;amp; folders should be owned by this user.&lt;/P&gt;

&lt;P&gt;I found out a few hours after IT restarted Splunk as 'root' user that something was wrong. I restarted via the command line and dictated which user (Splunk) it should run under:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sudo -H -u splunk /$splunk_home_directory$/bin/splunk restart&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This didn't solve the issue completely because, after IT restarted Splunk0 as 'root', newly indexed data and other files were now owned by 'root'. The symptom was that after I restarted Splunk as user 'splunk', I could not see anything indexed while SPlunk was running under 'root' user. My data only showed events from the day before back.&lt;/P&gt;

&lt;P&gt;To fix, I stopped Splunk and changed owner:group on ever single file and directory in the splunk home directory:&lt;/P&gt;

&lt;P&gt;From the parent directory of the splunk home directory:&lt;BR /&gt;
&lt;STRONG&gt;sudo chown splunk:splunk -R splunk/&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Then I restarted again:&lt;BR /&gt;
&lt;STRONG&gt;sudo -H -u splunk /$splunk_home_directory$/bin/splunk restart&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;For some reason this didn't change some files so I had to do a  search for any files in the Splunk directory that weren't owned by splunk user. I manually ran chown against these files, restarted splunk correctly, and voila. Back to normal.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173954#M9127</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2020-09-28T15:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restarted Splunk Now Missing All Data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173955#M9128</link>
      <description>&lt;P&gt;This is what I was thinking as well. to I did manage to chown the directoriey correclty but when I restart I am still missing my data. Proving this may not be it I started Splunk as root and still am missing the data.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 17:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173955#M9128</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2013-12-10T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Restarted Splunk Now Missing All Data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173956#M9129</link>
      <description>&lt;P&gt;is your splunk/var directory a mapped network drive or symlinked? When I chowned the first time it didn't hit the symlinked directory so I had to go into that directory and run the command.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 17:51:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173956#M9129</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2013-12-10T17:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Restarted Splunk Now Missing All Data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173957#M9130</link>
      <description>&lt;P&gt;It appears all of the datafiles are owned appropriatly (see original post above, edited for ls -l).&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 19:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173957#M9130</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2013-12-10T19:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restarted Splunk Now Missing All Data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173958#M9131</link>
      <description>&lt;P&gt;It appears that my index size was too small and the data was frozen (however I have no frozen directory configured). I ran this query to find that data had been frozen in the charlesriver index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="/apps/wcm-splunk/var/log/splunk/splunkd.log" charlesriver freeze
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It showed records such as this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11-28-2013 04:03:28.156 -0500 INFO  BucketMover - AsyncFreezer freeze succeeded for bkt='/apps/wcm-splunk/var/lib/splunk/charlesriver/db/db_1385355600_1384810904_22'   2013-11-28T04:03:28.156-0500    '/apps/wcm-splunk/var/lib/splunk/charlesriver/db/db_1385355600_1384810904_22'       BucketMover     4   28  3   november    28  thursday    2013    -300    splunkd-log     wnl-svr184b _internal       1   INFO        AsyncFreezer freeze succeeded for bkt='/apps/wcm-splunk/var/lib/splunk/charlesriver/db/db_1385355600_1384810904_22'     --_::._-____-_____='//-//////'  /apps/wcm-splunk/var/log/splunk/splunkd.log splunkd wnl-svr184b 29      0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now my question is, can I recover these or are they lost for good considering I have no directory configured for frozen data?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 21:50:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Restarted-Splunk-Now-Missing-All-Data/m-p/173958#M9131</guid>
      <dc:creator>andrewkenth</dc:creator>
      <dc:date>2013-12-10T21:50:40Z</dc:date>
    </item>
  </channel>
</rss>

