<?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 Restore archived data by moving the archive into the thawed directory in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Restore-archived-data-by-moving-the-archive-into-the-thawed/m-p/77791#M1103</link>
    <description>&lt;P&gt;Hi have followed the following Splunk Restore archived data, but coudnot able to searched the restored data. Can any one please help me, is there any ohter way to restore archived data back into splunk.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Restore archived data by moving the archive into the thawed directory,&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;$SPLUNK_HOME/var/lib/splunk/defaultdb/thaweddb.&lt;/STRONG&gt; You can restore an archive to a&lt;BR /&gt;
Splunk server regardless of operating system with some restrictions -- data generated on 64bit&lt;BR /&gt;
systems is not likely to work well on 32 bit systems, and data cannot be moved from PowerPC or&lt;BR /&gt;
Sparc systems to x86 or x86-64 systems, and vice versa. Data in thaweddb is not subject to the&lt;BR /&gt;
server's index aging scheme (hot &amp;gt; warm&amp;gt; cold &amp;gt; frozen). You can put old archived data in thawed&lt;BR /&gt;
for as long as you need. When the data is no longer needed, simply delete it or move it out of thawed.&lt;BR /&gt;
The details of how to restore archived data depends on how it was archived. You can restore&lt;BR /&gt;
archived data to any index or instance of Splunk, with the caveat that you do not introduce bucket ID&lt;BR /&gt;
conflicts to your index. Archived data does not need to be restored to its pre-archival location.&lt;/P&gt;

&lt;P&gt;**&lt;STRONG&gt;&lt;EM&gt;nix users&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;P&gt;Here is an example of safely moving a previously saved archive bucket to thawed.&lt;BR /&gt;
1. Copy your archive bucket to the thawed directory.&lt;BR /&gt;
&lt;STRONG&gt;# cp -r db_1181756465_1162600547_0 $SPLUNK_HOME/var/lib/splunk/defaultdb/thaweddb/temporary-db_255&lt;/STRONG&gt;&lt;BR /&gt;
Note: If the archived db was compressed, be sure to uncompress the contents in the temporary&lt;BR /&gt;
directory.&lt;BR /&gt;
2. Rename the directory you just copied into the thawed directory to something that Splunk will&lt;BR /&gt;
recognize:&lt;/P&gt;

&lt;H1&gt;cd $SPLUNK_HOME/var/lib/splunk/defaultdb/thaweddb/&lt;/H1&gt;

&lt;H1&gt;mv temporary-db_1181756465_1162600547_0 db_1181756465_1162600547_0&lt;/H1&gt;

&lt;P&gt;Note: This examples assumes that the bucket id '0' does not conflict with any other bucket in the&lt;BR /&gt;
main (defaultdb) index. If it does, you will have to move the bucket to a non-conflicting bucket ID.&lt;BR /&gt;
3. Refresh the manifests:&lt;/P&gt;

&lt;H1&gt;cd $SPLUNK_HOME/bin&lt;/H1&gt;

&lt;H1&gt;./splunk login&lt;/H1&gt;

&lt;H1&gt;./splunk _internal call /data/indexes/main/rebuild-metadata-and-manifests&lt;/H1&gt;

&lt;P&gt;After a few moments, the contents of your newly thawed buckets should be searchable again.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:26:18 GMT</pubDate>
    <dc:creator>ssingh5</dc:creator>
    <dc:date>2020-09-28T11:26:18Z</dc:date>
    <item>
      <title>Restore archived data by moving the archive into the thawed directory</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Restore-archived-data-by-moving-the-archive-into-the-thawed/m-p/77791#M1103</link>
      <description>&lt;P&gt;Hi have followed the following Splunk Restore archived data, but coudnot able to searched the restored data. Can any one please help me, is there any ohter way to restore archived data back into splunk.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Restore archived data by moving the archive into the thawed directory,&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;$SPLUNK_HOME/var/lib/splunk/defaultdb/thaweddb.&lt;/STRONG&gt; You can restore an archive to a&lt;BR /&gt;
Splunk server regardless of operating system with some restrictions -- data generated on 64bit&lt;BR /&gt;
systems is not likely to work well on 32 bit systems, and data cannot be moved from PowerPC or&lt;BR /&gt;
Sparc systems to x86 or x86-64 systems, and vice versa. Data in thaweddb is not subject to the&lt;BR /&gt;
server's index aging scheme (hot &amp;gt; warm&amp;gt; cold &amp;gt; frozen). You can put old archived data in thawed&lt;BR /&gt;
for as long as you need. When the data is no longer needed, simply delete it or move it out of thawed.&lt;BR /&gt;
The details of how to restore archived data depends on how it was archived. You can restore&lt;BR /&gt;
archived data to any index or instance of Splunk, with the caveat that you do not introduce bucket ID&lt;BR /&gt;
conflicts to your index. Archived data does not need to be restored to its pre-archival location.&lt;/P&gt;

&lt;P&gt;**&lt;STRONG&gt;&lt;EM&gt;nix users&lt;/EM&gt;&lt;/STRONG&gt;*&lt;/P&gt;

&lt;P&gt;Here is an example of safely moving a previously saved archive bucket to thawed.&lt;BR /&gt;
1. Copy your archive bucket to the thawed directory.&lt;BR /&gt;
&lt;STRONG&gt;# cp -r db_1181756465_1162600547_0 $SPLUNK_HOME/var/lib/splunk/defaultdb/thaweddb/temporary-db_255&lt;/STRONG&gt;&lt;BR /&gt;
Note: If the archived db was compressed, be sure to uncompress the contents in the temporary&lt;BR /&gt;
directory.&lt;BR /&gt;
2. Rename the directory you just copied into the thawed directory to something that Splunk will&lt;BR /&gt;
recognize:&lt;/P&gt;

&lt;H1&gt;cd $SPLUNK_HOME/var/lib/splunk/defaultdb/thaweddb/&lt;/H1&gt;

&lt;H1&gt;mv temporary-db_1181756465_1162600547_0 db_1181756465_1162600547_0&lt;/H1&gt;

&lt;P&gt;Note: This examples assumes that the bucket id '0' does not conflict with any other bucket in the&lt;BR /&gt;
main (defaultdb) index. If it does, you will have to move the bucket to a non-conflicting bucket ID.&lt;BR /&gt;
3. Refresh the manifests:&lt;/P&gt;

&lt;H1&gt;cd $SPLUNK_HOME/bin&lt;/H1&gt;

&lt;H1&gt;./splunk login&lt;/H1&gt;

&lt;H1&gt;./splunk _internal call /data/indexes/main/rebuild-metadata-and-manifests&lt;/H1&gt;

&lt;P&gt;After a few moments, the contents of your newly thawed buckets should be searchable again.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Restore-archived-data-by-moving-the-archive-into-the-thawed/m-p/77791#M1103</guid>
      <dc:creator>ssingh5</dc:creator>
      <dc:date>2020-09-28T11:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Restore archived data by moving the archive into the thawed directory</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Restore-archived-data-by-moving-the-archive-into-the-thawed/m-p/77792#M1104</link>
      <description>&lt;P&gt;Save yourself time and use this script &lt;/P&gt;

&lt;P&gt;&lt;A href="https://github.com/tuwid/splunk_frozen_db_restore"&gt;https://github.com/tuwid/splunk_frozen_db_restore&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;like below : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;root@XXXXXX:~# python splunk_frozen_db_restore.py
We're using the default index path, for custom indexes please adjust the path variable here
Enter index:winevents_security
Enter start date: (eg 30.12.2015): 31.12.2015
Enter end date: (eg 30.12.2015): 01.01.2016
[+] Searching dates on index winevents_security
in /opt/splunk/var/lib/splunk/winevents_security/frozendb/
1451516400
1451602800
Got 313 elements from /opt/splunk/var/lib/splunk/winevents_security/frozendb/
Found : db_1452350660_1451453107_329
[+] Copying databases into thaweddb..
cp -R /opt/splunk/var/lib/splunk/winevents_security/frozendb/db_1452350660_1451453107_329 /opt/splunk/var/lib/splunk/winevents_security/thaweddb/
[+] Rebuilding DBs
splunkd fsck repair --one-bucket --include-hots --bucket-path=/opt/splunk/var/lib/splunk/winevents_security/thaweddb/db_1452350660_1451453107_329 --log-to--splunkd-log
root@XXXXXX:~#
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2016 14:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Restore-archived-data-by-moving-the-archive-into-the-thawed/m-p/77792#M1104</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2016-04-21T14:03:58Z</dc:date>
    </item>
  </channel>
</rss>

