<?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 How to restore frozen data when it looks my buckets have corrupted files? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272430#M10362</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;

&lt;P&gt;I'm running Splunk 6.3.2 in Linux machines.&lt;/P&gt;

&lt;P&gt;I have to restore some old data to Splunk.&lt;BR /&gt;
I've followed the steps described at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Restorearchiveddata" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Restorearchiveddata&lt;/A&gt; but I'm facing an error that I can't solve.&lt;/P&gt;

&lt;P&gt;I've copied the frozen bucket &lt;STRONG&gt;db_1438454243_1438385486_4557&lt;/STRONG&gt; to &lt;STRONG&gt;/var/splunk/defaultdb/thaweddb/&lt;/STRONG&gt; &lt;BR /&gt;
After that, I executed the following command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk rebuild /var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557 
USAGE: splunk rebuild &amp;lt;bucketPath&amp;gt; [&amp;lt;indexName&amp;gt;] [--ignore-read-error] [--no-log] The &amp;lt;indexName&amp;gt; parameter is ignored if provided. Please see 'splunk fsck' for more options.  This command is just a wrapper for 'splunk fsck'.

Redirecting to 'splunkd fsck' with args:
        repair --one-bucket --include-hots --bucket-path=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557
--log-to--splunkd-log ERROR JournalSlice - Error reading compressed journal while streaming: bad gzip header, provider=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata/journal.gz ERROR BucketBuilder - Error reading rawdata: Error reading compressed journal while streaming: bad gzip header, provider=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata/journal.gz WARN  Fsck - Repair (entire bucket) idx= bucket='/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557' failed: (entire bucket) Rebuild for bkt='/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557' failed: Error reading rawdata: Error reading compressed journal while streaming: bad gzip header, provider=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata/journal.gz Rebuilding bucket failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Inside &lt;STRONG&gt;/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata&lt;/STRONG&gt; there are only 3 files: &lt;STRONG&gt;slicesv2.dat&lt;/STRONG&gt;, &lt;STRONG&gt;slicemin.dat&lt;/STRONG&gt; and &lt;STRONG&gt;journal.gz&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;It looks like the buckets have corrupted files, since the command file in linux five me that the &lt;STRONG&gt;journal.gz&lt;/STRONG&gt; file is data.&lt;BR /&gt;
Is that correct or I'm missing something?&lt;/P&gt;

&lt;P&gt;Thank in advance.&lt;BR /&gt;
Best regards.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:04:39 GMT</pubDate>
    <dc:creator>guimilare</dc:creator>
    <dc:date>2020-09-29T12:04:39Z</dc:date>
    <item>
      <title>How to restore frozen data when it looks my buckets have corrupted files?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272430#M10362</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;

&lt;P&gt;I'm running Splunk 6.3.2 in Linux machines.&lt;/P&gt;

&lt;P&gt;I have to restore some old data to Splunk.&lt;BR /&gt;
I've followed the steps described at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Restorearchiveddata" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Restorearchiveddata&lt;/A&gt; but I'm facing an error that I can't solve.&lt;/P&gt;

&lt;P&gt;I've copied the frozen bucket &lt;STRONG&gt;db_1438454243_1438385486_4557&lt;/STRONG&gt; to &lt;STRONG&gt;/var/splunk/defaultdb/thaweddb/&lt;/STRONG&gt; &lt;BR /&gt;
After that, I executed the following command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk rebuild /var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557 
USAGE: splunk rebuild &amp;lt;bucketPath&amp;gt; [&amp;lt;indexName&amp;gt;] [--ignore-read-error] [--no-log] The &amp;lt;indexName&amp;gt; parameter is ignored if provided. Please see 'splunk fsck' for more options.  This command is just a wrapper for 'splunk fsck'.

Redirecting to 'splunkd fsck' with args:
        repair --one-bucket --include-hots --bucket-path=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557
--log-to--splunkd-log ERROR JournalSlice - Error reading compressed journal while streaming: bad gzip header, provider=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata/journal.gz ERROR BucketBuilder - Error reading rawdata: Error reading compressed journal while streaming: bad gzip header, provider=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata/journal.gz WARN  Fsck - Repair (entire bucket) idx= bucket='/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557' failed: (entire bucket) Rebuild for bkt='/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557' failed: Error reading rawdata: Error reading compressed journal while streaming: bad gzip header, provider=/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata/journal.gz Rebuilding bucket failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Inside &lt;STRONG&gt;/var/splunk/defaultdb/thaweddb/db_1438454243_1438385486_4557/rawdata&lt;/STRONG&gt; there are only 3 files: &lt;STRONG&gt;slicesv2.dat&lt;/STRONG&gt;, &lt;STRONG&gt;slicemin.dat&lt;/STRONG&gt; and &lt;STRONG&gt;journal.gz&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;It looks like the buckets have corrupted files, since the command file in linux five me that the &lt;STRONG&gt;journal.gz&lt;/STRONG&gt; file is data.&lt;BR /&gt;
Is that correct or I'm missing something?&lt;/P&gt;

&lt;P&gt;Thank in advance.&lt;BR /&gt;
Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272430#M10362</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2020-09-29T12:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to restore frozen data when it looks my buckets have corrupted files?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272431#M10363</link>
      <description>&lt;P&gt;Give instructions from this post a try.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/80882/corrupted-bucket-journal.html"&gt;https://answers.splunk.com/answers/80882/corrupted-bucket-journal.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272431#M10363</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-12-13T19:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to restore frozen data when it looks my buckets have corrupted files?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272432#M10364</link>
      <description>&lt;P&gt;Yes, sounds like your bucket is corrupted.&lt;BR /&gt;&lt;BR /&gt;
How about "gunzip journal.gz" Does this work without error? Most likely this will return error, too. &lt;BR /&gt;
Unfortunately, if that's the case, there is no tool available recover the bucket. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2016 19:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-restore-frozen-data-when-it-looks-my-buckets-have/m-p/272432#M10364</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2016-12-26T19:50:39Z</dc:date>
    </item>
  </channel>
</rss>

