<?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: Automatically source is getting deleted after 24 hours in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168864#M34188</link>
    <description>&lt;P&gt;What somesoni2 said, and when the data is searchable check the timestamp of the data:&lt;BR /&gt;
&lt;CODE&gt;search yourdata | table _time,_raw&lt;/CODE&gt;&lt;BR /&gt;
The _time value should match the time in the _raw string, and both should make sense.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2013 02:37:57 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2013-12-06T02:37:57Z</dc:date>
    <item>
      <title>Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168862#M34186</link>
      <description>&lt;P&gt;I added source file (.csv file) to splunk using below command,&lt;/P&gt;

&lt;P&gt;./splunk add oneshot /root/project/2003.csv –sourcetype sfpd&lt;/P&gt;

&lt;P&gt;I can see that 1,50,902 events got indexed.&lt;/P&gt;

&lt;P&gt;But exactly after one day, all indexed data from this source file will get deleted except one line (i.e., header of .csv).&lt;/P&gt;

&lt;P&gt;I haven't executed delete command. Also I removed the privileges of using delete command, so no one can use it. But still this issue is happening daily. &lt;/P&gt;

&lt;P&gt;I am not able to find the solution for this issue.&lt;/P&gt;

&lt;P&gt;Please someone help me. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 23:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168862#M34186</guid>
      <dc:creator>sravan2j</dc:creator>
      <dc:date>2013-12-05T23:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168863#M34187</link>
      <description>&lt;P&gt;A good idea will be to check the splunk data retention period for the index where this source's data is stored. Indexer.conf-&amp;gt; FrozenTimePeriodInSecs  attribute. If this attribute exists for your index and its value is 86400, this is the problem. Increase the value to required period in second, and restart the splunk instance.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 02:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168863#M34187</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2013-12-06T02:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168864#M34188</link>
      <description>&lt;P&gt;What somesoni2 said, and when the data is searchable check the timestamp of the data:&lt;BR /&gt;
&lt;CODE&gt;search yourdata | table _time,_raw&lt;/CODE&gt;&lt;BR /&gt;
The _time value should match the time in the _raw string, and both should make sense.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 02:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168864#M34188</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-12-06T02:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168865#M34189</link>
      <description>&lt;P&gt;I checked indexes.conf -&amp;gt; FrozenTimePeriodInSecs attribute. Its value is 188697600.&lt;/P&gt;

&lt;P&gt;I also ran the following command - "search yourdata | table _time,_raw" as you suggested. The _time value matched with the time in _raw string. Time stamp for the data is 2003-12-01. As the data is 10 years old, may be data is getting deleted. Is it is true? then in that case how I can resolve this issue. Please let me know&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168865#M34189</guid>
      <dc:creator>sravan2j</dc:creator>
      <dc:date>2020-09-28T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168866#M34190</link>
      <description>&lt;P&gt;The following attribute - maxHotIdleSecs in Indexes.conf file has the value 86400. Is this is the reason for this issue??&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 09:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168866#M34190</guid>
      <dc:creator>sravan2j</dc:creator>
      <dc:date>2013-12-06T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168867#M34191</link>
      <description>&lt;P&gt;You've identified the problem: &lt;/P&gt;

&lt;P&gt;"the data is 10 years old".&lt;/P&gt;

&lt;P&gt;The default retention period that you see in &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; is about 6 years. That means that as soon as splunk gets time time make the comparison, which in your case is when the hot bucket rolls to warm, it will correctly see that the data should be deleted, and does so.&lt;/P&gt;

&lt;P&gt;The solution is to increase the value for &lt;CODE&gt;frozenTimePeriodInSecs&lt;/CODE&gt; to a higher value, e.g. 400000000 or 500000000, which is about 12 and 15 years, respectively. The highest possible value is 4294967295, which is more than a hundred years...&lt;/P&gt;

&lt;P&gt;You can read more about data retention here:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Indexer/Setaretirementandarchivingpolicy"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Indexer/Setaretirementandarchivingpolicy&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 14:20:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168867#M34191</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-12-06T14:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically source is getting deleted after 24 hours</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168868#M34192</link>
      <description>&lt;P&gt;I modified the frozenTimePeriodInSecs to set 400000000 as its value. If I face this issue again, I will message here. Also I want to let you know that, I modified "maxHotIdleSecs" value from 86400 to 604800. Thanking everyone.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 21:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Automatically-source-is-getting-deleted-after-24-hours/m-p/168868#M34192</guid>
      <dc:creator>sravan2j</dc:creator>
      <dc:date>2013-12-06T21:25:19Z</dc:date>
    </item>
  </channel>
</rss>

