<?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: _audit and _internal index data retention in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33871#M6095</link>
    <description>&lt;P&gt;You certainly don't need to keep events from _internal and _audit for 6 years.&lt;/P&gt;

&lt;P&gt;Events in _internal mostly are indexed from $SPLUNK_HOME/var/log/splunk. The majority of the volume comes from files such as splunkd.log and metrics.log.&lt;/P&gt;

&lt;P&gt;The information contained in those events is typically interesting to troubleshoot Splunk-specific issues or to get sample measurements of event-processing thruput from metrics.log.&lt;/P&gt;

&lt;P&gt;As it is rare to have to troubleshoot Splunk issues that are older than a month, I would say that the default retention period of 28 days set for _internal in $SPLUNK_HOME/etc/system/default/indexes.conf is adequate :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[_internal]&lt;BR /&gt;
homePath   = $SPLUNK_DB/_internaldb/db&lt;BR /&gt;
coldPath   = $SPLUNK_DB/_internaldb/colddb&lt;BR /&gt;
thawedPath = $SPLUNK_DB/_internaldb/thaweddb&lt;BR /&gt;
maxDataSize = 100&lt;BR /&gt;
frozenTimePeriodInSecs = 2419200&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The _audit index is where Splunk logs events from fschange inputs by default (see the File system change monitor section of inputs.conf.spec for more information - &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Inputsconf"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Inputsconf&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Events in this index are kept for 6 years by default (again, a setting inherited from $SPLUNK_HOME/etc/system/default/indexes.conf), but unless you have your own fschange inputs, only $SPLUNK_HOME/etc is audited in this way. For that reason, you could want to shorten the retention period for this index, although it is usually very small in size anyway.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example :&lt;/STRONG&gt; Let's modify $SPLUNK_HOME/etc/system/local/indexes.conf to set a retention period of 20 days for &lt;CODE&gt;_internal&lt;/CODE&gt; and 60 days for &lt;CODE&gt;_audit&lt;/CODE&gt;. We'll simply add the two following stanzas to that file :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[_internal]&lt;BR /&gt;
frozenTimePeriodInSecs = 1728000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[_audit]&lt;BR /&gt;
frozenTimePeriodInSecs = 5184000&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2011 04:09:07 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2011-06-24T04:09:07Z</dc:date>
    <item>
      <title>_audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33870#M6094</link>
      <description>&lt;P&gt;EDIT: Splunk version = 4.1.6&lt;/P&gt;

&lt;P&gt;Are there any guidelines on the length of time that _audit and _internal index data should be kept?&lt;/P&gt;

&lt;P&gt;I have come up with age-out policies for our Splunk events, however&lt;BR /&gt;
the part I'm stuck on is how long should I keep my _audit and _internal events?&lt;/P&gt;

&lt;P&gt;My initial thought is to keep events in those two indexes for the same age as my oldest index (5 years).&lt;/P&gt;

&lt;P&gt;The only problem is the majority of my indexes are only retained for 1 year or less.&lt;/P&gt;

&lt;P&gt;Spacewise, it seems wasteful to keep all of _audit and _internal for 5 years.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2011 22:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33870#M6094</guid>
      <dc:creator>ualbanytech</dc:creator>
      <dc:date>2011-06-23T22:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33871#M6095</link>
      <description>&lt;P&gt;You certainly don't need to keep events from _internal and _audit for 6 years.&lt;/P&gt;

&lt;P&gt;Events in _internal mostly are indexed from $SPLUNK_HOME/var/log/splunk. The majority of the volume comes from files such as splunkd.log and metrics.log.&lt;/P&gt;

&lt;P&gt;The information contained in those events is typically interesting to troubleshoot Splunk-specific issues or to get sample measurements of event-processing thruput from metrics.log.&lt;/P&gt;

&lt;P&gt;As it is rare to have to troubleshoot Splunk issues that are older than a month, I would say that the default retention period of 28 days set for _internal in $SPLUNK_HOME/etc/system/default/indexes.conf is adequate :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[_internal]&lt;BR /&gt;
homePath   = $SPLUNK_DB/_internaldb/db&lt;BR /&gt;
coldPath   = $SPLUNK_DB/_internaldb/colddb&lt;BR /&gt;
thawedPath = $SPLUNK_DB/_internaldb/thaweddb&lt;BR /&gt;
maxDataSize = 100&lt;BR /&gt;
frozenTimePeriodInSecs = 2419200&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The _audit index is where Splunk logs events from fschange inputs by default (see the File system change monitor section of inputs.conf.spec for more information - &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Inputsconf"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Inputsconf&lt;/A&gt;).&lt;/P&gt;

&lt;P&gt;Events in this index are kept for 6 years by default (again, a setting inherited from $SPLUNK_HOME/etc/system/default/indexes.conf), but unless you have your own fschange inputs, only $SPLUNK_HOME/etc is audited in this way. For that reason, you could want to shorten the retention period for this index, although it is usually very small in size anyway.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Example :&lt;/STRONG&gt; Let's modify $SPLUNK_HOME/etc/system/local/indexes.conf to set a retention period of 20 days for &lt;CODE&gt;_internal&lt;/CODE&gt; and 60 days for &lt;CODE&gt;_audit&lt;/CODE&gt;. We'll simply add the two following stanzas to that file :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[_internal]&lt;BR /&gt;
frozenTimePeriodInSecs = 1728000&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[_audit]&lt;BR /&gt;
frozenTimePeriodInSecs = 5184000&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 04:09:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33871#M6095</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2011-06-24T04:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33872#M6096</link>
      <description>&lt;P&gt;Follow up question.  I created my local policies by placing indexes.conf in &lt;/P&gt;

&lt;P&gt;SPLUNK_HOME/etc/system/local&lt;/P&gt;

&lt;P&gt;I just verified the default/indexes.conf has the policies as you outlined for _internal and _audit&lt;/P&gt;

&lt;P&gt;However,  my _internal and _audit indexes do not appear to be obeying the policies.&lt;/P&gt;

&lt;P&gt;I did not re-create stanzas in my local indexes.conf  as it was my understanding that &lt;BR /&gt;
any I define in local overrides those in default dir.&lt;/P&gt;

&lt;P&gt;Manager &amp;gt;&amp;gt; Indexes shows&lt;BR /&gt;
_audit     3,548 MB  w/ earliest Dec 30, 2009&lt;BR /&gt;
_internal  5,193 MB  w/ earliest Dec 4, 2009&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33872#M6096</guid>
      <dc:creator>ualbanytech</dc:creator>
      <dc:date>2011-06-24T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33873#M6097</link>
      <description>&lt;P&gt;You still need to declare the stanza for which you are changing the parameters from the default. I have amended my answer above to provide a clear example of what should go into the local version of indexes.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33873#M6097</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2011-06-24T16:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33874#M6098</link>
      <description>&lt;P&gt;I wasn't clear enough. I did not change the defaults for _internal yet the default&lt;BR /&gt;
frozenTimePeriodInSecs has been exceeded by over a year.&lt;/P&gt;

&lt;P&gt;It seems my problem relates to how Splunk ages out data (only when rolling between buckets).&lt;BR /&gt;
And, that is contingent on other settings.&lt;/P&gt;

&lt;P&gt;The age out based on time is too complicated. &lt;/P&gt;

&lt;P&gt;Based on your answer, I decided to just set the max size to 1 GB and 2 GB for _audit and _internal (respectively).&lt;/P&gt;

&lt;P&gt;Thank You very much!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 20:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33874#M6098</guid>
      <dc:creator>ualbanytech</dc:creator>
      <dc:date>2011-06-24T20:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33875#M6099</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
splunk maintains its default settings in $SPLUNK_HOME/etc/system/default path...&lt;/P&gt;

&lt;P&gt;If you want to make any changes on default properties, then you can create inputs.conf or index.conf etc conf files under /etc/system/local/ direcotry....&lt;/P&gt;

&lt;P&gt;use same stanza's in *.conf files. with different values... Hope It will helpful&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Srinivas&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2015 09:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33875#M6099</guid>
      <dc:creator>splunksriniwipr</dc:creator>
      <dc:date>2015-09-11T09:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33876#M6100</link>
      <description>&lt;P&gt;Guys, are we sure its called _audit. Looking at our indexers, the directory is called audit. &lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 12:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33876#M6100</guid>
      <dc:creator>buckiboy</dc:creator>
      <dc:date>2017-08-02T12:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33877#M6101</link>
      <description>&lt;P&gt;I had changed the $SPLUNK_HOME/etc/system/local/indexes.conf to change _internal and _audit size, but when I try the bundle-push, it fails saying "No new bundle will be pushed. The master and peers already have this bundle with bundle id =  xxxxx"&lt;/P&gt;

&lt;P&gt;How changes in $SPLUNK_HOME/etc/system/local/ should be pushed to the indexers?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 21:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33877#M6101</guid>
      <dc:creator>x3mboy</dc:creator>
      <dc:date>2020-01-28T21:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33878#M6102</link>
      <description>&lt;P&gt;Make the changes in $SPLUNK_HOME/etc/master-apps/local/indexes.conf on the Master and Splunk should recognize it needs a new bundle.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 18:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/33878#M6102</guid>
      <dc:creator>rtev</dc:creator>
      <dc:date>2020-05-14T18:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/531242#M89376</link>
      <description>&lt;P&gt;Yes, it's correct. See below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk@test:/opt/splunk/var/lib/splunk$ splunk btool indexes list _audit | grep audit
[_audit]
coldPath = $SPLUNK_DB/audit/colddb
homePath = $SPLUNK_DB/audit/db
thawedPath = $SPLUNK_DB/audit/thaweddb
tstatsHomePath = volume:_splunk_summaries/audit/datamodel_summary&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree it's not logical and Splunk should change directory name from "audit" to "_audit" on a filesystem.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2020 19:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/531242#M89376</guid>
      <dc:creator>tomasmoser</dc:creator>
      <dc:date>2020-11-28T19:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/542824#M90673</link>
      <description>&lt;P&gt;Solved this with&amp;nbsp;&lt;SPAN&gt;maxTotalDataSizeMB&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 13:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/542824#M90673</guid>
      <dc:creator>splunkreal</dc:creator>
      <dc:date>2021-03-08T13:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: _audit and _internal index data retention</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/549474#M91281</link>
      <description>&lt;P&gt;Thank u for your post. Am asked for a document to prove that Splunk Audit logs are kept for 1 year. Where do I find such a document &amp;amp; edit it if necessary? Thank u in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/audit-and-internal-index-data-retention/m-p/549474#M91281</guid>
      <dc:creator>SamHTexas</dc:creator>
      <dc:date>2021-04-27T14:47:13Z</dc:date>
    </item>
  </channel>
</rss>

