<?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 archived logs in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181052#M7705</link>
    <description>&lt;P&gt;Hi all ,&lt;/P&gt;

&lt;P&gt;I have configured Splunk buckets to archive indexed logs after 1 month. I will store the archived logs in the offsite location for 7 years. However I am not sure about 2 points about restoration  steps of archived logs.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;If I have to restore archive buckets of only 1 month then how to identify buckets of this time frame.&lt;/LI&gt;
&lt;LI&gt;Splunk restoration steps says about restoration of archive buckets one by one. How can I restore all the buckets in one go. If anyone has developed any script, I am requesting him/her to please share the same as I am virtually handicap in coding.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Lohit&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2013 11:35:29 GMT</pubDate>
    <dc:creator>lohit</dc:creator>
    <dc:date>2013-12-17T11:35:29Z</dc:date>
    <item>
      <title>How to restore archived logs</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181052#M7705</link>
      <description>&lt;P&gt;Hi all ,&lt;/P&gt;

&lt;P&gt;I have configured Splunk buckets to archive indexed logs after 1 month. I will store the archived logs in the offsite location for 7 years. However I am not sure about 2 points about restoration  steps of archived logs.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;If I have to restore archive buckets of only 1 month then how to identify buckets of this time frame.&lt;/LI&gt;
&lt;LI&gt;Splunk restoration steps says about restoration of archive buckets one by one. How can I restore all the buckets in one go. If anyone has developed any script, I am requesting him/her to please share the same as I am virtually handicap in coding.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Lohit&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 11:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181052#M7705</guid>
      <dc:creator>lohit</dc:creator>
      <dc:date>2013-12-17T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to restore archived logs</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181053#M7706</link>
      <description>&lt;P&gt;The bucket names Splunk assigns have two timestamps, giving the time range of events in the bucket. You'll need all the buckets that cover the time range you are interested in.&lt;/P&gt;

&lt;P&gt;For restoring multiple buckets you might want to have a look at &lt;A href="https://github.com/splunk/splunk-shuttl"&gt;shuttl&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2013 21:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181053#M7706</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2013-12-17T21:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to restore archived logs</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181054#M7707</link>
      <description>&lt;P&gt;Try this python script &lt;/P&gt;

&lt;BLOCKQUOTE&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;/BLOCKQUOTE&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
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2016 14:00:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-restore-archived-logs/m-p/181054#M7707</guid>
      <dc:creator>arber</dc:creator>
      <dc:date>2016-04-21T14:00:37Z</dc:date>
    </item>
  </channel>
</rss>

