<?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: How to backup splunk-var data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629579#M218711</link>
    <description>&lt;P&gt;Splunk has a document that explains how to backup and recover your indexes.&amp;nbsp; &amp;nbsp;It also explains rollover.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Indexer/Backupindexeddata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Indexer/Backupindexeddata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We don't have enough information to answer the second question.&amp;nbsp; What's best for you may not be best for others.&amp;nbsp; Also, different indexes within a site may need different settings.&lt;/P&gt;&lt;P&gt;For a bucket to contain at most one day of data, set maxHotSpanSecs to 86400.&amp;nbsp; Note that a bucket may contain less than a day of data if it filled up early.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 21:53:27 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-02-03T21:53:27Z</dc:date>
    <item>
      <title>How to backup splunk-var data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629565#M218704</link>
      <description>&lt;P&gt;Hello Splunkers ,&lt;/P&gt;
&lt;P&gt;I wrote a python script that explores the splunk-var indexes and calculates their total size, and then asks the user if they’d like to back it up.&lt;/P&gt;
&lt;P&gt;After the user indicates which indexes they’d like to back up, it copies all buckets and other metadata in the db path (excluding the hot bucket) to a dir that is specified as a command line arg.&lt;/P&gt;
&lt;P&gt;I want to know&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How to actually back up files (is it as simple as copying out the dir and then later copying it in and restarting splunk)&lt;/LI&gt;
&lt;LI&gt;Best implement bucket policies (maxHotSpanSecs)&lt;/LI&gt;
&lt;LI&gt;Understand bucket rollover when we have unexpected behavior&lt;BR /&gt;&lt;BR /&gt;What indexes.conf should&amp;nbsp; I use to have the bucket have one day worth of data&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 22:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629565#M218704</guid>
      <dc:creator>power12</dc:creator>
      <dc:date>2023-02-03T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup splunk-var data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629579#M218711</link>
      <description>&lt;P&gt;Splunk has a document that explains how to backup and recover your indexes.&amp;nbsp; &amp;nbsp;It also explains rollover.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/Indexer/Backupindexeddata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/Indexer/Backupindexeddata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We don't have enough information to answer the second question.&amp;nbsp; What's best for you may not be best for others.&amp;nbsp; Also, different indexes within a site may need different settings.&lt;/P&gt;&lt;P&gt;For a bucket to contain at most one day of data, set maxHotSpanSecs to 86400.&amp;nbsp; Note that a bucket may contain less than a day of data if it filled up early.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 21:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629579#M218711</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-03T21:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup splunk-var data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629600#M218717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239523"&gt;@power12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;answering to your questions:&lt;/P&gt;&lt;P&gt;How to actually back up files (is it as simple as copying out the dir and then later copying it in and restarting splunk)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;back-up of warm and cold buckets can be done also with active Splunk, doesn't need to stop Splunk.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Best implement bucket policies (maxHotSpanSecs)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;it depends on your situaztion, but I usually leave the default values.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Understand bucket rollover when we have unexpected behavior&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;why do you speak of unexpected behaviour? if there's something strange, you can see it in the Monitoring console or by messages.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;What indexes.conf should&amp;nbsp; I use to have the bucket have one day worth of data&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;why should you have one day worth of data? you don't have any advantage of this and probably some problems, infact there's a Splunk alert that fires when you have too small buckets because this limits performaces; I'd avoid to have too small and too large buckets, for this reason I leave the default values.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Ciao.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Giuseppe&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 07:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629600#M218717</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-04T07:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup splunk-var data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629947#M218848</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thank you for your reply..We have a single instance splunk and 100GB license and on an average we get 10GB of data per day..Even with this..its not good practice to have 1 day worth data?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 17:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629947#M218848</guid>
      <dc:creator>power12</dc:creator>
      <dc:date>2023-02-07T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup splunk-var data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629953#M218851</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; Thank you for your reply .&amp;nbsp; Yes I used the same setting but its chunking before 86400 ..so I checked with btool and saw that the&amp;nbsp;maxDataSize is set to default which is 750 MB..changing that solved the issue&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a single instance splunk and 100GB license and on an average we get 10GB of data per day..Even with this..is it not good practice to have 1 day worth data ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 18:07:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629953#M218851</guid>
      <dc:creator>power12</dc:creator>
      <dc:date>2023-02-07T18:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup splunk-var data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629977#M218853</link>
      <description>&lt;P&gt;I'm glad to hear you solved your problem.&lt;/P&gt;&lt;P&gt;I think it is not correct to say that 1 day of data is not good practice.&amp;nbsp; It can be good practice, depending on your needs.&amp;nbsp; Many sites use that practice to help ensure their data freezes in a timely fashion.&amp;nbsp; If a bucket contains multiple days of data then old data in that bucket will remain searchable until the newest event in the bucket expires.&amp;nbsp; That could violate the site's data retention policy.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 19:40:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/629977#M218853</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-02-07T19:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to backup splunk-var data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/630022#M218869</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/239523"&gt;@power12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as also&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said, it isn't a good idea having one day worth data because, unless you have very large data volumes (as not in your case), in this way you'll have a largen number of very small buckets.&lt;/P&gt;&lt;P&gt;leave the default values!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 07:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-backup-splunk-var-data/m-p/630022#M218869</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-08T07:33:10Z</dc:date>
    </item>
  </channel>
</rss>

