<?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 Adding a predicted cumulative value to a stacked bar chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534524#M151052</link>
    <description>&lt;P&gt;I wish to take a stacked bar chart, use 'addtotals' to create a field representing the cumulative value of the stacked bars, and then overlay a prediction (using predict) of the cumulative value on the stacked bar chart.&amp;nbsp; When I try to do this, the stacked bars always revert to side-by-side in the chart.&amp;nbsp; Here is a look at what I wish to do:&lt;/P&gt;&lt;P&gt;some SPL that generates a sample dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| streamstats count AS count
| eval _time=now()+(count*43200)
| eval n=(random() % 1000000) + 1
| eval load=100*count*n
| eval host_name=if(count%2==0,"host1", "host2")
| timechart span=1d avg(load) AS load by host_name
| addtotals host* fieldname=load_total&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a visualization of this, stack the bars, and add the 'load_total' field as an overlay, I end up with something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbolande_0-1609365904054.png" style="width: 558px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12403iE7AEC3DD416A0982/image-dimensions/558x198?v=v2" width="558" height="198" role="button" title="rbolande_0-1609365904054.png" alt="rbolande_0-1609365904054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I wish to add 'predict' to this query to get forecasted values for the cumulative 'load_total' field.&amp;nbsp; Here is the SPL for that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| streamstats count AS count
| eval _time=now()+(count*43200)
| eval n=(random() % 1000000) + 1
| eval load=100*count*n
| eval host_name=if(count%2==0,"host1", "host2")
| timechart span=1d avg(load) AS load by host_name
| addtotals host* fieldname=load_total
| predict load_total algorithm=LLT future_timespan=4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though the bars are set to be stacked in the format of the chart, they revert to side-by-side.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbolande_1-1609366848339.png" style="width: 538px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12404iEAEB0D6EF7261742/image-dimensions/538x191?v=v2" width="538" height="191" role="button" title="rbolande_1-1609366848339.png" alt="rbolande_1-1609366848339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas on why the behavior is like this or how I can get the stacked bars?&lt;/P&gt;&lt;P&gt;I believe what I am trying to do is the same as in this &lt;A href="https://community.splunk.com/t5/Splunk-Search/Predict-In-dashboards/m-p/528323" target="_self"&gt;post&lt;/A&gt;&amp;nbsp;from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224369"&gt;@renuka&lt;/a&gt;&amp;nbsp;, but I wanted to add a little more information.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reid&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 22:23:09 GMT</pubDate>
    <dc:creator>rbolande</dc:creator>
    <dc:date>2020-12-30T22:23:09Z</dc:date>
    <item>
      <title>Adding a predicted cumulative value to a stacked bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534524#M151052</link>
      <description>&lt;P&gt;I wish to take a stacked bar chart, use 'addtotals' to create a field representing the cumulative value of the stacked bars, and then overlay a prediction (using predict) of the cumulative value on the stacked bar chart.&amp;nbsp; When I try to do this, the stacked bars always revert to side-by-side in the chart.&amp;nbsp; Here is a look at what I wish to do:&lt;/P&gt;&lt;P&gt;some SPL that generates a sample dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| streamstats count AS count
| eval _time=now()+(count*43200)
| eval n=(random() % 1000000) + 1
| eval load=100*count*n
| eval host_name=if(count%2==0,"host1", "host2")
| timechart span=1d avg(load) AS load by host_name
| addtotals host* fieldname=load_total&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I create a visualization of this, stack the bars, and add the 'load_total' field as an overlay, I end up with something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbolande_0-1609365904054.png" style="width: 558px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12403iE7AEC3DD416A0982/image-dimensions/558x198?v=v2" width="558" height="198" role="button" title="rbolande_0-1609365904054.png" alt="rbolande_0-1609365904054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I wish to add 'predict' to this query to get forecasted values for the cumulative 'load_total' field.&amp;nbsp; Here is the SPL for that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| streamstats count AS count
| eval _time=now()+(count*43200)
| eval n=(random() % 1000000) + 1
| eval load=100*count*n
| eval host_name=if(count%2==0,"host1", "host2")
| timechart span=1d avg(load) AS load by host_name
| addtotals host* fieldname=load_total
| predict load_total algorithm=LLT future_timespan=4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even though the bars are set to be stacked in the format of the chart, they revert to side-by-side.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbolande_1-1609366848339.png" style="width: 538px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12404iEAEB0D6EF7261742/image-dimensions/538x191?v=v2" width="538" height="191" role="button" title="rbolande_1-1609366848339.png" alt="rbolande_1-1609366848339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas on why the behavior is like this or how I can get the stacked bars?&lt;/P&gt;&lt;P&gt;I believe what I am trying to do is the same as in this &lt;A href="https://community.splunk.com/t5/Splunk-Search/Predict-In-dashboards/m-p/528323" target="_self"&gt;post&lt;/A&gt;&amp;nbsp;from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224369"&gt;@renuka&lt;/a&gt;&amp;nbsp;, but I wanted to add a little more information.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reid&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 22:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534524#M151052</guid>
      <dc:creator>rbolande</dc:creator>
      <dc:date>2020-12-30T22:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a predicted cumulative value to a stacked bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534526#M151054</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults count=20
| streamstats count AS count
| eval _time=now()+(count*43200)
| eval n=(random() % 1000000) + 1
| eval load=100*count*n
| eval host_name=if(count%2==0,"host1", "host2")
| timechart span=1d avg(load) AS load by host_name
| addtotals host* fieldname=load_total
| predict load_total algorithm=LLT future_timespan=4
| fields - _*_total&lt;/LI-CODE&gt;&lt;P&gt;We need to make the display look like this.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 22:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534526#M151054</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-30T22:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a predicted cumulative value to a stacked bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534571#M151069</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;- Thanks for the response.&amp;nbsp; Your proposed solution does give me a workaround of sorts (we are currently using something like this).&amp;nbsp; Here is what the visual looks like:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12410iB62DC3B280BFCB15/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I am really hoping to get a visual that maintains the "normal" predict confidence level shaded area...with the stacked bars.&amp;nbsp; Something like this, except with stacked bars:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rbolande_0-1609427508676.png" style="width: 725px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12413i98B597D6A3B77171/image-dimensions/725x252?v=v2" width="725" height="252" role="button" title="rbolande_0-1609427508676.png" alt="rbolande_0-1609427508676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a technical reason that we can't maintain stacked bars while also preserving the shading of the confidence envelope?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;REID&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 15:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/534571#M151069</guid>
      <dc:creator>rbolande</dc:creator>
      <dc:date>2020-12-31T15:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a predicted cumulative value to a stacked bar chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/538084#M152100</link>
      <description>&lt;P&gt;After consulting with Splunk Support and our Splunk Sales Engineer, I have submitted a request for using PREDICT with stacked bars on&amp;nbsp;&lt;A href="https://ideas.splunk.com/ideas/EID-I-807" target="_blank"&gt;https://ideas.splunk.com/ideas/EID-I-807&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The desired functionality does not seem possible in current versions of Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 13:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-predicted-cumulative-value-to-a-stacked-bar-chart/m-p/538084#M152100</guid>
      <dc:creator>rbolande</dc:creator>
      <dc:date>2021-02-01T13:38:55Z</dc:date>
    </item>
  </channel>
</rss>

