<?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 Stacked bar chart for specific columns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329243#M97999</link>
    <description>&lt;P&gt;I have four fields, baseline, lvl1,lvl2,lv3. I have to compare baseline vs (lvl1+lvl2+lvl3) to see if sum of lvl1,lvl2,lvl3 is exceeding the baseline.&lt;BR /&gt;
For that purpose I created stacked chart but it is combining all four fields including baseline, in bar.&lt;BR /&gt;
Expected result: &lt;BR /&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3015iEC356AF994CE4E5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here blue is baseline and others are lvl1, lvl2,lvl3 in stack mode.&lt;/P&gt;

&lt;P&gt;Any help would be great!!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 09:36:40 GMT</pubDate>
    <dc:creator>prafulljha</dc:creator>
    <dc:date>2017-06-07T09:36:40Z</dc:date>
    <item>
      <title>Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329243#M97999</link>
      <description>&lt;P&gt;I have four fields, baseline, lvl1,lvl2,lv3. I have to compare baseline vs (lvl1+lvl2+lvl3) to see if sum of lvl1,lvl2,lvl3 is exceeding the baseline.&lt;BR /&gt;
For that purpose I created stacked chart but it is combining all four fields including baseline, in bar.&lt;BR /&gt;
Expected result: &lt;BR /&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3015iEC356AF994CE4E5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Here blue is baseline and others are lvl1, lvl2,lvl3 in stack mode.&lt;/P&gt;

&lt;P&gt;Any help would be great!!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329243#M97999</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-06-07T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329244#M98000</link>
      <description>&lt;P&gt;Hi prafulljha,&lt;BR /&gt;
do you want to have a graphic solution or a calculated solution?&lt;BR /&gt;
if you want a graphic solution you could create a new field that sum lvl1,lvl2 and lv3 and then overlay this value in your graphic.&lt;/P&gt;

&lt;P&gt;If instead you want a calculated solution you could add to your search a field from eval command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval result=if(baseline&amp;gt;lvl1+lvl2+lv3,"OK","NOK")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 12:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329244#M98000</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-06-07T12:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329245#M98001</link>
      <description>&lt;P&gt;I want the graphic solution. I tried overlay option also. But the problem with that is, coincidentally the count of baseline (overlay field) is overlapping with count of stacked bars of fields (lvl1 or lvl2 or lv3) in visualization. So that is not impressive. If there is any way to take care of this situation in this method or any alternate, will be helpful&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 05:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329245#M98001</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-06-09T05:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329246#M98002</link>
      <description>&lt;P&gt;You could put in your graphic only baseline and  the sum of other fields, not staked, so you can see any difference.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 06:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329246#M98002</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-06-09T06:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329247#M98003</link>
      <description>&lt;P&gt;I have to see levels also, like in above pic, different colors represents different levels. Green for Lvl1, Orange for lvl3, Red for lvl3 and blue for baseline&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 12:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329247#M98003</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-06-09T12:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329248#M98004</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Can anyone provide their inputs ?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 06:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329248#M98004</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-10-04T06:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329249#M98005</link>
      <description>&lt;P&gt;@prafulljha, can you add some sample tabular data for which you want to create chart?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 10:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329249#M98005</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-04T10:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329250#M98006</link>
      <description>&lt;P&gt;@niketnilay, sure. I can provide you the CSVs which i am using, but don't know how to upload the same.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 10:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329250#M98006</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-10-04T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329251#M98007</link>
      <description>&lt;P&gt;You can type the values as text and choose &lt;CODE&gt;&amp;lt;code&amp;gt;&lt;/CODE&gt; button (101010) while posting. Or else you can take a screenshot and upload to any image sharing site and paste the URL using the image button &lt;CODE&gt;&amp;lt;img&amp;gt;&lt;/CODE&gt; here.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 11:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329251#M98007</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-04T11:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329252#M98008</link>
      <description>&lt;P&gt;@niketnilay -In both the file common field is Dom,so we need to write our query using join so that we can join both the table using field Dom.&lt;BR /&gt;
(1) For the Baseline count the values are:-&lt;BR /&gt;
LastUpdatedDateTime Dom Baseline&lt;BR /&gt;
20:11.5 AA  10&lt;BR /&gt;
20:11.5 AOL 9&lt;BR /&gt;
20:11.5 ATL 2&lt;BR /&gt;
20:11.5 AWD 4&lt;BR /&gt;
20:11.5 CYB 3&lt;BR /&gt;
20:11.5 DocM    1&lt;BR /&gt;
20:11.5 ECL 1&lt;BR /&gt;
20:11.5 INT 2&lt;BR /&gt;
20:11.5 LSC 1&lt;BR /&gt;
20:11.5 LUS 4&lt;BR /&gt;
20:11.5 NEBAS   1&lt;BR /&gt;
20:11.5 Ralie   2&lt;BR /&gt;
20:11.5 SCD 1&lt;BR /&gt;
20:11.5 TRN 5&lt;/P&gt;

&lt;P&gt;(2) For the Levels count these are the values:-&lt;BR /&gt;
LastUpdatedDateTime Dom MyCount Lvl&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 ATL 1   Lvl2&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 CYB 1   Lvl2&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 LUS 1   Lvl2&lt;BR /&gt;
56:20.0 CYB 1   Lvl2&lt;BR /&gt;
56:20.0 ATL 1   Lvl2&lt;BR /&gt;
56:20.0 CYB 1   Lvl2&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 LUS 1   Lvl2&lt;BR /&gt;
56:20.0 AWD 1   Lvl2&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 CYB 1   Lvl2&lt;BR /&gt;
56:20.0 TRN 1   Lvl2&lt;BR /&gt;
56:20.0 ATL 1   Lvl2&lt;BR /&gt;
56:20.0 LUS 1   Lvl2&lt;BR /&gt;
56:20.0 INT 1   Lvl3&lt;BR /&gt;
56:20.0 SCD 1   Lvl3&lt;BR /&gt;
56:20.0 ATL 1   Lvl3&lt;BR /&gt;
56:20.0 AA  1   Lvl3&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 TRN 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AWD 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AOL 1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;BR /&gt;
56:20.0 AA  1   Lvl1&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 11:22:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329252#M98008</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-10-04T11:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329253#M98009</link>
      <description>&lt;P&gt;@prafulljha, with the current Column Chart in Splunk, you can either have Stacked or non stacked chart but not a combination of both. So as @cusello has stated, you can use Baseline as overlay field and for coloring the series you would need to use &lt;CODE&gt;charting.fieldColors&lt;/CODE&gt; Simple XML Chart Configuration (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties):"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/ChartConfigurationReference#General_chart_properties):&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;option name="charting.fieldColors"&amp;gt;{"lvl1":0x00FF00,"lvl2":0xFFC200,"lvl3":0xFF0000}&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As evident, the above expects your series names to be &lt;CODE&gt;lvl1, lvl2 and lvl3&lt;/CODE&gt; and also if &lt;CODE&gt;Baseline&lt;/CODE&gt; is the first series it will be picked up as &lt;STRONG&gt;Blue by default&lt;/STRONG&gt; series color for the first series.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3013i7BEA8F831E8FF485/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;If you need the Columns as per your screenshot, you might have to build your own custom visualization using Highcharts JS library. Refer to documentation for Building Custom Visualization: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomVizTutorial"&gt;https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomVizTutorial&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 16:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329253#M98009</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-04T16:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329254#M98010</link>
      <description>&lt;P&gt;@niketnilay, thanks for your idea, actually this i have already done, the problem we are facing is difficulties while hovering and while clicking on the bar for lvls to see the data below (as these columns are populating data below in tabular form) as this baseline overlay always comes in between(if the values are of same range).&lt;BR /&gt;
Here is how my panel looks like.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3014iC0D1213BAA8C2884/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Can you please suggest any alternative way to achieve the same in splunk?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 09:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329254#M98010</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-10-05T09:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329255#M98011</link>
      <description>&lt;P&gt;@niketnilay,&lt;BR /&gt;
PFB my comments.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 12:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329255#M98011</guid>
      <dc:creator>prafulljha</dc:creator>
      <dc:date>2017-10-05T12:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stacked bar chart for specific columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329256#M98012</link>
      <description>&lt;P&gt;You have two options, &lt;/P&gt;

&lt;P&gt;1) You can use Left Click and Drag option to zoom in to smaller/specific range so that selection of various series is easier.&lt;/P&gt;

&lt;P&gt;2) Splunk Enterprise 7.0 came up with new &lt;CODE&gt;seriesCompare&lt;/CODE&gt; as legend mode using Simple XML Chart configuration: &lt;CODE&gt;&amp;lt;option name="charting.legend.mode"&amp;gt;seriesCompare&amp;lt;/option&amp;gt;&lt;/CODE&gt;. This will allow you to hover over a specific region on chart and it will show selected values for all series for that region. This would however work only on Line Chart not Column Chart.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://wiki.splunk.com/images/2/2d/ChartingLegendMode_seriesCompare.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 13:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stacked-bar-chart-for-specific-columns/m-p/329256#M98012</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-05T13:08:13Z</dc:date>
    </item>
  </channel>
</rss>

