<?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: limit the data size in Docker with maxTotalDataSizeMB  does not work in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565454#M100613</link>
    <description>&lt;P&gt;I have changed the configuration based on your recommendation.&lt;/P&gt;&lt;P&gt;This is the current setting I use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ cat /opt/splunk/etc/system/local/indexes.conf
[default]
maxTotalDataSizeMB=3

[main]
maxTotalDataSizeMB=1
frozenTimePeriodInSecs=300
disabled=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I also modified my queries a little bit:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Hopefully this shows the size in MB:&amp;nbsp;&lt;EM&gt;index=_* source=* type=Usage idx=* | eval MB=b/1024/1024 | stats sum(MB) by st&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;result:&amp;nbsp;7.520857810974121, increasing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number of records:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;sourcetype=ADMIN_SERVER index="main" | stats count as Records&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;result: 1781, increasing&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Size on disk:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;| dbinspect index="main" | eval MB=sizeOnDiskMB| stats sum(MB)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;result:&amp;nbsp;1.84375, increasing&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;According to my last query, the size of the main index that I use is 1.8MB which is bigger than 1MB that I set in the conf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also checked the &lt;EM&gt;Settings &amp;gt; Monitoring Console &amp;gt; Index and volumes. &lt;/EM&gt;Here I have found interesting reports.&lt;/P&gt;&lt;P&gt;As I can see all disk-related data is shown in &lt;STRONG&gt;GB&lt;/STRONG&gt;, and I think that my feeding speed and size are not enough big to see changes in the charts. Maybe I need to change my "feeder" to inject more data into the logfile because my small &lt;EM&gt;echo "xxx" &amp;gt;&amp;gt; $logfile&lt;/EM&gt;&amp;nbsp; command does not send too many bytes to the file that I am monitoring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the most interesting thing that I see in the&amp;nbsp;&lt;EM&gt;Index Detail: Instance report is this:&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="panel-head dashboard-element-header"&gt;&lt;STRONG&gt;Retention policies&lt;/STRONG&gt;&lt;DIV class="panel-body dashboard-element-body"&gt;&lt;DIV class="splunk-view splunk-table"&gt;&lt;DIV class="shared-reportvisualizer"&gt;&lt;DIV class="viz-controller"&gt;&lt;DIV class="facets-container"&gt;&lt;DIV class="viz-panel  viz-facet-size-medium"&gt;&lt;DIV class="lazy-view-container lazy-results-table shared-resultstable-lazyresultstable"&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&lt;BR /&gt;&lt;TABLE border="1" width="99.73992197659298%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="49.93498049414825%"&gt;maxTotalDataSizeMB&lt;/TD&gt;&lt;TD width="49.80494148244473%"&gt;1&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="49.93498049414825%"&gt;frozenTimePeriodInSecs&lt;/TD&gt;&lt;TD width="49.80494148244473%"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="49.93498049414825%"&gt;homePath.maxDataSizeMB&lt;/TD&gt;&lt;TD width="49.80494148244473%"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;coldPath.maxDataSizeMB&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;It seems that my settings is applied.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;I see in the report that the &lt;EM&gt;main&lt;/EM&gt; index I use received 2465 events and it has only 1 bucket.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;So maybe I need to wait a little bit to have 2 buckets and then the increasing of records and disk usage will stop.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;I so appreciate your help, your advice helped a lot.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;If you could suggest to me something else that I could check/configure that would be great.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;In the meantime, I will change my feeding bash script to send more data to Splunk.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;thx a lot&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 10:15:18 GMT</pubDate>
    <dc:creator>somoarn</dc:creator>
    <dc:date>2021-09-01T10:15:18Z</dc:date>
    <item>
      <title>limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565330#M100601</link>
      <description>&lt;P&gt;I am learning Splunk and I have built the following test environment in Docker:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Splunk server running in a container, using the official docker image:&amp;nbsp;&amp;nbsp;&lt;EM&gt;image: splunk/splunk:8.2&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;I have another docker container, call it&amp;nbsp;&lt;EM&gt;client&lt;/EM&gt; where I installed the forwarder and then I added a file to monitor with the&amp;nbsp;&lt;EM&gt;$SPLUNK_HOME/bin/splunk add monitor $MY_LOGFILE -index main -sourcetype mylog&lt;/EM&gt;&amp;nbsp;command.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Everything works fine. If I append&amp;nbsp;&lt;EM&gt;$MY_LOGFILE&lt;/EM&gt;&amp;nbsp;in the client docker container with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;echo "hello" &amp;gt;&amp;gt; $MY_LOGFILE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;command then I can see the new line in the Splunk web console.&lt;/P&gt;&lt;P&gt;Now I am appending/feeding my log file with an endless bash counter-up loop and I can see everything in the Splunk web console. Great.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would like to delete old records from Splunk to save disk space, so I followed the documentation and I did this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sudo vi /opt/splunk/etc/system/local/indexes.conf&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with this content&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[main]
maxTotalDataSizeMB=1
rozenTimePeriodInSecs=300
disabled=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As I know this allows Splunk to automatically delete old data when my index hits the 1MB size.&amp;nbsp; After I have created this new config file, I restarted the Splunk Docker container (and Splunk as well manually).&lt;/P&gt;&lt;P&gt;But actually, nothing happens. It seems that this setting is not considered, and I see the increasing number of records in the index and index size is also increasing without limitation in Splunk.&lt;/P&gt;&lt;P&gt;I use the following commands to check index size:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;sourcetype=mylog | stats count as Records&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;index=_internal source=* type=Usage idx=* | eval SIZE=b/1024 | stats sum(SIZE) by st&lt;/EM&gt;, result:&amp;nbsp;30756.775390625&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;But when I stop Splunk then I am able to clean up the index with this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk stop
splunk clean eventdata  
splunk start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But I have a scenario where &lt;STRONG&gt;I need to limit the size of the index&lt;/STRONG&gt; and the disk usage that is used by Splunk index "realtime", &lt;STRONG&gt;without stop and start&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am missing here?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 14:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565330#M100601</guid>
      <dc:creator>somoarn</dc:creator>
      <dc:date>2021-08-31T14:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565339#M100602</link>
      <description>&lt;P&gt;This could be caused by several issues.&lt;BR /&gt;The first to check is the ownership of your indexes.conf. I noticed you used sudo to edit it, and therefore it will be owned by root. Splunk runs as the "splunk" user by default. Because of that it will ignore the file you put into local because it doesn't have permission to read it. Unless you are explicitly running Splunk as root. Change the ownership of the file and all directories above.&lt;/P&gt;&lt;P&gt;Next would be restarting the container itself. Unless you have persistent storage configured, the container will pick a new directory for storage each time it is restarted.&lt;/P&gt;&lt;P&gt;There are other causes, but those are where I would start, and lean towards the ownership of indexes.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 14:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565339#M100602</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-08-31T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565343#M100603</link>
      <description>&lt;P&gt;Thx for the response. This is a good idea.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have dropped my containers and started again from the scratch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ docker exec -u splunk -it splunk /bin/bash
vi /opt/splunk/etc/system/local/indexes.conf

[main]
maxTotalDataSizeMB=1
frozenTimePeriodInSecs=300
disabled=false

ls -all /opt/splunk/etc/system/local/indexes.conf
-rw-rw-r-- 1 splunk splunk 71 Aug 31 14:58 /opt/splunk/etc/system/local/indexes.conf
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I restarted the Splunk this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ cd /opt/splunk/bin/
$ ./splunk restart
Stopping splunkd...
Shutting down.  Please wait, as this may take a few minutes.
.....................................
Stopping splunk helpers...

Done.

Splunk&amp;gt; Needle. Haystack. Found.

Checking prerequisites...
	Checking http port [8000]: open
	Checking mgmt port [8089]: open
	Checking appserver port [127.0.0.1:8065]: open
	Checking kvstore port [8191]: open
	Checking configuration... Done.
	Checking critical directories...	Done
	Checking indexes...
		Validated: _audit _internal _introspection _metrics _metrics_rollup _telemetry _thefishbucket history main summary
	Done
	Checking filesystem compatibility...  Done
	Checking conf files for problems...
	Done
	Checking default conf files for edits...
	Validating installed files against hashes from '/opt/splunk/splunk-8.2.1-ddff1c41e5cf-linux-2.6-x86_64-manifest'
	All installed files intact.
	Done
All preliminary checks passed.

Starting splunk server daemon (splunkd)...  
Done


Waiting for web server at http://127.0.0.1:8000 to be available........ Done


If you get stuck, we're here to help.  
Look for answers here: http://docs.splunk.com

The Splunk web interface is at http://splunk:8000&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have waited 10 minutes and checked the result.&lt;/P&gt;&lt;P&gt;The number of the records is still increasing and the size of the index too.&lt;/P&gt;&lt;P&gt;The size of the index based on the query above is&amp;nbsp;1622.9306640625.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 15:12:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565343#M100603</guid>
      <dc:creator>somoarn</dc:creator>
      <dc:date>2021-08-31T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565347#M100605</link>
      <description>&lt;P&gt;Ok that looks good.&lt;/P&gt;&lt;P&gt;The other part then is that your search is returning a cumulative size of all indexes.&lt;BR /&gt;The config change you made affects only the "main" index.&lt;/P&gt;&lt;P&gt;Splunk indexes it's own logs to the _internaldb index, and that can grow quite large.&lt;BR /&gt;You would need to set maxTotalDataSizeMB globally using the [default] stanza, or set it for each index, including internal and any others.&lt;/P&gt;&lt;P&gt;Or limit your search to only "main" if that's what you're really curious about.&lt;BR /&gt;An easier method for that is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# For all non-internal indexes
| tstats count where index=* by index

# For Splunk internal indexes
| tstats count where index=_*&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 31 Aug 2021 15:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565347#M100605</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-08-31T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565348#M100606</link>
      <description>&lt;P&gt;Also just noticed, it may just be a copy/paste error here but you have a typo in your config:&lt;BR /&gt;&lt;BR /&gt;rozenTimePeriodInSecs=300&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;Should be frozenTimePeriodInSecs=300&lt;BR /&gt;That could possibly cause the entire stanza or config to be ignored.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 15:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565348#M100606</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-08-31T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565454#M100613</link>
      <description>&lt;P&gt;I have changed the configuration based on your recommendation.&lt;/P&gt;&lt;P&gt;This is the current setting I use:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ cat /opt/splunk/etc/system/local/indexes.conf
[default]
maxTotalDataSizeMB=3

[main]
maxTotalDataSizeMB=1
frozenTimePeriodInSecs=300
disabled=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I also modified my queries a little bit:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Hopefully this shows the size in MB:&amp;nbsp;&lt;EM&gt;index=_* source=* type=Usage idx=* | eval MB=b/1024/1024 | stats sum(MB) by st&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;result:&amp;nbsp;7.520857810974121, increasing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number of records:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;sourcetype=ADMIN_SERVER index="main" | stats count as Records&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;result: 1781, increasing&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Size on disk:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;| dbinspect index="main" | eval MB=sizeOnDiskMB| stats sum(MB)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;result:&amp;nbsp;1.84375, increasing&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;According to my last query, the size of the main index that I use is 1.8MB which is bigger than 1MB that I set in the conf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also checked the &lt;EM&gt;Settings &amp;gt; Monitoring Console &amp;gt; Index and volumes. &lt;/EM&gt;Here I have found interesting reports.&lt;/P&gt;&lt;P&gt;As I can see all disk-related data is shown in &lt;STRONG&gt;GB&lt;/STRONG&gt;, and I think that my feeding speed and size are not enough big to see changes in the charts. Maybe I need to change my "feeder" to inject more data into the logfile because my small &lt;EM&gt;echo "xxx" &amp;gt;&amp;gt; $logfile&lt;/EM&gt;&amp;nbsp; command does not send too many bytes to the file that I am monitoring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the most interesting thing that I see in the&amp;nbsp;&lt;EM&gt;Index Detail: Instance report is this:&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="panel-head dashboard-element-header"&gt;&lt;STRONG&gt;Retention policies&lt;/STRONG&gt;&lt;DIV class="panel-body dashboard-element-body"&gt;&lt;DIV class="splunk-view splunk-table"&gt;&lt;DIV class="shared-reportvisualizer"&gt;&lt;DIV class="viz-controller"&gt;&lt;DIV class="facets-container"&gt;&lt;DIV class="viz-panel  viz-facet-size-medium"&gt;&lt;DIV class="lazy-view-container lazy-results-table shared-resultstable-lazyresultstable"&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&lt;BR /&gt;&lt;TABLE border="1" width="99.73992197659298%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="49.93498049414825%"&gt;maxTotalDataSizeMB&lt;/TD&gt;&lt;TD width="49.80494148244473%"&gt;1&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="49.93498049414825%"&gt;frozenTimePeriodInSecs&lt;/TD&gt;&lt;TD width="49.80494148244473%"&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="49.93498049414825%"&gt;homePath.maxDataSizeMB&lt;/TD&gt;&lt;TD width="49.80494148244473%"&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;coldPath.maxDataSizeMB&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;It seems that my settings is applied.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;I see in the report that the &lt;EM&gt;main&lt;/EM&gt; index I use received 2465 events and it has only 1 bucket.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;So maybe I need to wait a little bit to have 2 buckets and then the increasing of records and disk usage will stop.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;I so appreciate your help, your advice helped a lot.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;If you could suggest to me something else that I could check/configure that would be great.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;In the meantime, I will change my feeding bash script to send more data to Splunk.&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-resultstable-resultstablemaster results-table"&gt;thx a lot&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 10:15:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565454#M100613</guid>
      <dc:creator>somoarn</dc:creator>
      <dc:date>2021-09-01T10:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565504#M100614</link>
      <description>&lt;P&gt;The following config works fine:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ cat /opt/splunk/etc/system/local/indexes.conf
[default]
maxTotalDataSizeMB=5
maxDataSize=auto_high_volume

[main]
maxTotalDataSizeMB=3
frozenTimePeriodInSecs=300
maxDataSize=2
maxMemMB=1
maxHotBuckets=3
disabled=false&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 01 Sep 2021 15:05:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565504#M100614</guid>
      <dc:creator>somoarn</dc:creator>
      <dc:date>2021-09-01T15:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: limit the data size in Docker with maxTotalDataSizeMB  does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565526#M100616</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237929"&gt;@somoarn&lt;/a&gt; I'm glad to hear we got this resolved for you. Even the slightest typo in a Splunk config can cause some unexpected behavior.&lt;/P&gt;&lt;P&gt;Configuring data retention, archiving, bucket rotation, etc. can become very complex. There are multiple layers of parameter settings and precedence rules that come into play.&lt;/P&gt;&lt;P&gt;One issue in your case was using "main", which is a pre-configured, Splunk index. Because you were setting only a few of the index parameters, you inherited the others from the Splunk configuration. Those settings combined with yours were preventing the bucket rotation to frozen/deleted that you were intending. But looks like you did a great job finding the right config combination that worked for you.&lt;/P&gt;&lt;P&gt;A couple of related notes worth mentioning...&lt;BR /&gt;&lt;BR /&gt;From your original post it looked like the data you were creating for testing didn't include a timestamp. In that case you would need to have DATETIME_CONFIG = CURRENT defined in props.conf for you sourcetype. You may have it there already, but without it that can cause issues with aging out data as well.&lt;BR /&gt;&lt;BR /&gt;Also, be very careful when you create a [default] stanza in /opt/splunk/etc/system/local/indexes.conf. Any parameter changes added there will be applied globally and affect every index in your environment. I know you're just testing on a container but its worth mentioning &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 17:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/limit-the-data-size-in-Docker-with-maxTotalDataSizeMB-does-not/m-p/565526#M100616</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-09-01T17:16:26Z</dc:date>
    </item>
  </channel>
</rss>

