<?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: How to create a stacked column chart with count(_time) split by index (_internal, main) for each host? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-stacked-column-chart-with-count-time-split-by/m-p/266453#M80091</link>
    <description>&lt;P&gt;It is easy if you use &lt;CODE&gt;chart&lt;/CODE&gt; instead &lt;CODE&gt;stats&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal OR index=main | chart count over host by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The key difference is that this turns one set of field values into columns instead of rows.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2015 21:06:57 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-10-07T21:06:57Z</dc:date>
    <item>
      <title>How to create a stacked column chart with count(_time) split by index (_internal, main) for each host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-stacked-column-chart-with-count-time-split-by/m-p/266452#M80090</link>
      <description>&lt;P&gt;I don't understand why this should be so difficult....okay, here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=* index=_internal OR index=main | stats count(_time) by host index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This does generate the data I want - for each host, there is a count of number of events in each of the two indexes.  I want to split the bar graph by index, and display the count(_time) in each index for each host.&lt;/P&gt;

&lt;P&gt;So host x should display one bar, split as two colors - one for each index - and each color indicating the number of events in that index.  And all of the hosts should comprise the x-axis.  So that way I can compare the ratio of fill of each index, for each host.&lt;BR /&gt;
I can't find any examples of stacked charts online that help me much.  Liked I said, seems like this should be easy....&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 20:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-stacked-column-chart-with-count-time-split-by/m-p/266452#M80090</guid>
      <dc:creator>gsawyer1</dc:creator>
      <dc:date>2015-10-07T20:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a stacked column chart with count(_time) split by index (_internal, main) for each host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-stacked-column-chart-with-count-time-split-by/m-p/266453#M80091</link>
      <description>&lt;P&gt;It is easy if you use &lt;CODE&gt;chart&lt;/CODE&gt; instead &lt;CODE&gt;stats&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal OR index=main | chart count over host by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The key difference is that this turns one set of field values into columns instead of rows.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 21:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-stacked-column-chart-with-count-time-split-by/m-p/266453#M80091</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-10-07T21:06:57Z</dc:date>
    </item>
  </channel>
</rss>

