<?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 the red flag, &amp;quot;the percentage of small buckets&amp;quot;, works? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/611370#M26074</link>
    <description>&lt;P&gt;Hello everyone I have been trying to understand how this alert works because for my point of view doesn't make sense.&lt;/P&gt;
&lt;P&gt;This message NEVER disappears from our splunk instances and I have been trying to catch the real root cause but I don't have clear the way this works.&lt;/P&gt;
&lt;P&gt;I have this message:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The percentage of small buckets (75%) created over the last hour is high and exceeded the red thresholds (50%) for index=foo, and possibly more indexes, on this indexer. At the time this alert fired, total buckets created=11, small buckets=8&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So I checked if the logs have Time parsing issue and there are not issues with the logs indexed by foo index.&lt;/P&gt;
&lt;P&gt;Then I checked with this search:&lt;/P&gt;
&lt;P&gt;index=_internal sourcetype=splunkd component=HotBucketRoller "finished moving hot to warm"&lt;BR /&gt;| eval bucketSizeMB = round(size / 1024 / 1024, 2)&lt;BR /&gt;| table _time splunk_server idx bid bucketSizeMB&lt;BR /&gt;| rename idx as index&lt;BR /&gt;| join type=left index&lt;BR /&gt;[ | rest /services/data/indexes count=0&lt;BR /&gt;| rename title as index&lt;BR /&gt;| eval maxDataSize = case (maxDataSize == "auto", 750,&lt;BR /&gt;maxDataSize == "auto_high_volume", 10000,&lt;BR /&gt;true(), maxDataSize)&lt;BR /&gt;| table index updated currentDBSizeMB homePath.maxDataSizeMB maxDataSize maxHotBuckets maxWarmDBCount ]&lt;BR /&gt;| eval bucketSizePercent = round(100*(bucketSizeMB/maxDataSize))&lt;BR /&gt;| eval isSmallBucket = if (bucketSizePercent &amp;lt; 10, 1, 0)&lt;BR /&gt;| stats sum(isSmallBucket) as num_small_buckets&lt;BR /&gt;count as num_total_buckets&lt;BR /&gt;by index splunk_server&lt;BR /&gt;| eval percentSmallBuckets = round(100*(num_small_buckets/num_total_buckets))&lt;BR /&gt;| sort - percentSmallBuckets&lt;BR /&gt;| eval isViolation = if (percentSmallBuckets &amp;gt; 30, "Yes", "No")&lt;BR /&gt;| search isViolation = Yes | stats count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran that search for the last 2 days and the result is ZERO&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="glpadilla_sol_0-1661890855955.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21262iB922C5DF8812258A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="glpadilla_sol_0-1661890855955.png" alt="glpadilla_sol_0-1661890855955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But the red-flag is still there...&lt;/P&gt;
&lt;P&gt;So I am not understanding what is going on.&lt;/P&gt;
&lt;P&gt;Here is the log the indicate that foo is rolling from hot to warm&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;08-30-2022&lt;/SPAN&gt; &lt;SPAN class=""&gt;02:12:27.121&lt;/SPAN&gt; &lt;SPAN class=""&gt;-0400&lt;/SPAN&gt; &lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;HotBucketRoller&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;1405281&lt;/SPAN&gt; &lt;SPAN class=""&gt;indexerPipe&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;finished&lt;/SPAN&gt; &lt;SPAN class=""&gt;moving&lt;/SPAN&gt; &lt;SPAN class=""&gt;hot&lt;/SPAN&gt; &lt;SPAN class=""&gt;to&lt;/SPAN&gt; &lt;SPAN class=""&gt;warm&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;bid=foo~19~AAD3329E-C8D9-4607-90FB-167760B4EB6F&lt;/SPAN&gt; &lt;SPAN class=""&gt;idx=foo&lt;/SPAN&gt; &lt;SPAN class=""&gt;from=hot_v1_19&lt;/SPAN&gt; &lt;SPAN class=""&gt;to=db_1661054400_1628568000_19_AAD3329E-C8D9-4607-90FB-167760B4EB6F&lt;/SPAN&gt; &lt;SPAN class=""&gt;size=797286400&lt;/SPAN&gt; &lt;SPAN class=""&gt;caller=size_exceeded&lt;/SPAN&gt; &lt;SPAN class=""&gt;_maxHotBucketSize=786432000&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;750MB&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN class=""&gt;bucketSize=797315072&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;760MB)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So as I can see the reason is logic &lt;STRONG&gt;&lt;SPAN class=""&gt;caller=size_exceeded &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;due to the size. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Just for information this index receives data just once a day midnight. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;If you have any inputs I would really appreciate it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Version 8.2.2&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 20:49:54 GMT</pubDate>
    <dc:creator>glpadilla_sol</dc:creator>
    <dc:date>2022-08-30T20:49:54Z</dc:date>
    <item>
      <title>How the red flag, "the percentage of small buckets", works?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/611370#M26074</link>
      <description>&lt;P&gt;Hello everyone I have been trying to understand how this alert works because for my point of view doesn't make sense.&lt;/P&gt;
&lt;P&gt;This message NEVER disappears from our splunk instances and I have been trying to catch the real root cause but I don't have clear the way this works.&lt;/P&gt;
&lt;P&gt;I have this message:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The percentage of small buckets (75%) created over the last hour is high and exceeded the red thresholds (50%) for index=foo, and possibly more indexes, on this indexer. At the time this alert fired, total buckets created=11, small buckets=8&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So I checked if the logs have Time parsing issue and there are not issues with the logs indexed by foo index.&lt;/P&gt;
&lt;P&gt;Then I checked with this search:&lt;/P&gt;
&lt;P&gt;index=_internal sourcetype=splunkd component=HotBucketRoller "finished moving hot to warm"&lt;BR /&gt;| eval bucketSizeMB = round(size / 1024 / 1024, 2)&lt;BR /&gt;| table _time splunk_server idx bid bucketSizeMB&lt;BR /&gt;| rename idx as index&lt;BR /&gt;| join type=left index&lt;BR /&gt;[ | rest /services/data/indexes count=0&lt;BR /&gt;| rename title as index&lt;BR /&gt;| eval maxDataSize = case (maxDataSize == "auto", 750,&lt;BR /&gt;maxDataSize == "auto_high_volume", 10000,&lt;BR /&gt;true(), maxDataSize)&lt;BR /&gt;| table index updated currentDBSizeMB homePath.maxDataSizeMB maxDataSize maxHotBuckets maxWarmDBCount ]&lt;BR /&gt;| eval bucketSizePercent = round(100*(bucketSizeMB/maxDataSize))&lt;BR /&gt;| eval isSmallBucket = if (bucketSizePercent &amp;lt; 10, 1, 0)&lt;BR /&gt;| stats sum(isSmallBucket) as num_small_buckets&lt;BR /&gt;count as num_total_buckets&lt;BR /&gt;by index splunk_server&lt;BR /&gt;| eval percentSmallBuckets = round(100*(num_small_buckets/num_total_buckets))&lt;BR /&gt;| sort - percentSmallBuckets&lt;BR /&gt;| eval isViolation = if (percentSmallBuckets &amp;gt; 30, "Yes", "No")&lt;BR /&gt;| search isViolation = Yes | stats count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran that search for the last 2 days and the result is ZERO&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="glpadilla_sol_0-1661890855955.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21262iB922C5DF8812258A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="glpadilla_sol_0-1661890855955.png" alt="glpadilla_sol_0-1661890855955.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But the red-flag is still there...&lt;/P&gt;
&lt;P&gt;So I am not understanding what is going on.&lt;/P&gt;
&lt;P&gt;Here is the log the indicate that foo is rolling from hot to warm&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;08-30-2022&lt;/SPAN&gt; &lt;SPAN class=""&gt;02:12:27.121&lt;/SPAN&gt; &lt;SPAN class=""&gt;-0400&lt;/SPAN&gt; &lt;SPAN class=""&gt;INFO&lt;/SPAN&gt; &lt;SPAN class=""&gt;HotBucketRoller&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;1405281&lt;/SPAN&gt; &lt;SPAN class=""&gt;indexerPipe&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;finished&lt;/SPAN&gt; &lt;SPAN class=""&gt;moving&lt;/SPAN&gt; &lt;SPAN class=""&gt;hot&lt;/SPAN&gt; &lt;SPAN class=""&gt;to&lt;/SPAN&gt; &lt;SPAN class=""&gt;warm&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;bid=foo~19~AAD3329E-C8D9-4607-90FB-167760B4EB6F&lt;/SPAN&gt; &lt;SPAN class=""&gt;idx=foo&lt;/SPAN&gt; &lt;SPAN class=""&gt;from=hot_v1_19&lt;/SPAN&gt; &lt;SPAN class=""&gt;to=db_1661054400_1628568000_19_AAD3329E-C8D9-4607-90FB-167760B4EB6F&lt;/SPAN&gt; &lt;SPAN class=""&gt;size=797286400&lt;/SPAN&gt; &lt;SPAN class=""&gt;caller=size_exceeded&lt;/SPAN&gt; &lt;SPAN class=""&gt;_maxHotBucketSize=786432000&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;750MB&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN class=""&gt;bucketSize=797315072&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class=""&gt;760MB)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So as I can see the reason is logic &lt;STRONG&gt;&lt;SPAN class=""&gt;caller=size_exceeded &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;due to the size. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Just for information this index receives data just once a day midnight. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;If you have any inputs I would really appreciate it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;Version 8.2.2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 20:49:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/611370#M26074</guid>
      <dc:creator>glpadilla_sol</dc:creator>
      <dc:date>2022-08-30T20:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How the red flag, "the percentage of small buckets", works?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/611418#M26075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241395"&gt;@glpadilla_sol&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I spoke of this problem with a people of splunk Professional Services and he said to me that's a bug and you can work without problems.&lt;/P&gt;&lt;P&gt;i agree that it's a strange control, but you could take the opportunity to check your inputs and eventually modify some input to send more data in the same index instead of using many different indexes.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 06:34:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/611418#M26075</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-08-31T06:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: How the red flag, "the percentage of small buckets", works?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/612122#M26106</link>
      <description>&lt;P&gt;Hello gcusello, thanks for the answer...&lt;/P&gt;&lt;P&gt;Yes I also check that alert with Splunk support and they even suggest to disable it.&lt;/P&gt;&lt;P&gt;But I decided just to adjust the threshold and I created a dashboard to see in detail the issue.&lt;/P&gt;&lt;DIV&gt;Current:&amp;nbsp;&lt;/DIV&gt;&lt;PRE&gt;[feature:buckets] &lt;BR /&gt;indicator:percent_small_buckets_created_last_24h:red = 50&lt;BR /&gt;indicator:percent_small_buckets_created_last_24h:yellow = 30&lt;/PRE&gt;&lt;DIV&gt;​&lt;/DIV&gt;&lt;DIV&gt;TO:&lt;/DIV&gt;&lt;PRE&gt;[feature:buckets] &lt;BR /&gt;indicator:percent_small_buckets_created_last_24h:red = 75 &lt;BR /&gt;indicator:percent_small_buckets_created_last_24h:yellow = 50&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 19:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-the-red-flag-quot-the-percentage-of-small-buckets-quot-works/m-p/612122#M26106</guid>
      <dc:creator>glpadilla_sol</dc:creator>
      <dc:date>2022-09-06T19:03:32Z</dc:date>
    </item>
  </channel>
</rss>

