<?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 do i do a timechart by category with individual counts of the hosts..?? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371020#M39324</link>
    <description>&lt;P&gt;index=a host=has 4 hosts&lt;BR /&gt;
index=b host=has 4 hosts &lt;/P&gt;

&lt;P&gt;Can we do a timechart with stacked column, categorizing the hosts by index and having the individual count of the hosts in each stack...??&lt;/P&gt;

&lt;P&gt;I am able to do a timechart by category based on this answer, but i am looking for a way if i can do individual counts of each host in a stacked column too..??&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/525574/looking-for-a-search-to-categorize-by-hosts.html"&gt;https://answers.splunk.com/answers/525574/looking-for-a-search-to-categorize-by-hosts.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 15:25:30 GMT</pubDate>
    <dc:creator>prakash007</dc:creator>
    <dc:date>2017-06-26T15:25:30Z</dc:date>
    <item>
      <title>How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371020#M39324</link>
      <description>&lt;P&gt;index=a host=has 4 hosts&lt;BR /&gt;
index=b host=has 4 hosts &lt;/P&gt;

&lt;P&gt;Can we do a timechart with stacked column, categorizing the hosts by index and having the individual count of the hosts in each stack...??&lt;/P&gt;

&lt;P&gt;I am able to do a timechart by category based on this answer, but i am looking for a way if i can do individual counts of each host in a stacked column too..??&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/525574/looking-for-a-search-to-categorize-by-hosts.html"&gt;https://answers.splunk.com/answers/525574/looking-for-a-search-to-categorize-by-hosts.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371020#M39324</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2017-06-26T15:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371021#M39325</link>
      <description>&lt;P&gt;Are you starting with something like &lt;CODE&gt;index=a OR index=b  | timechart count by host&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371021#M39325</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2017-06-26T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371022#M39326</link>
      <description>&lt;P&gt;yes, that works fine to get the individual count of the host in the stacked column, + i am also expecting to do a total count by index within the stacked column...??&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371022#M39326</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2017-06-26T15:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371023#M39327</link>
      <description>&lt;P&gt;This is what i did so far, where i can get the total count by category(index=a and index=b), but i am looking for if there's a way we can do individual counts within this search...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving fields host, _time
 | ...some logic to get category field there...
 | bucket _time span=10m  ***assuming you want to bucket time. update as required***
 | stats count by _time group host
 | appendpipe [| stats sum(count) as count by _time group | eval 
   group=group."- Total" ]
 | timechart span=10m sum(count) by group
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2017 15:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371023#M39327</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2017-06-26T15:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371024#M39328</link>
      <description>&lt;P&gt;Assuming you need output like &lt;CODE&gt;_time host1 host2 ... total_a total_b&lt;/CODE&gt; , give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search 
| bucket span=10m _time    ***assuming you want to bucket time. update as required***
| stats count by _time index host
| appendpipe [| stats sum(count) as count by _time index | eval host="total_".index ]
| timechart span=10m sum(count) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371024#M39328</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-26T17:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371025#M39329</link>
      <description>&lt;P&gt;I am almost there, but index A,B Totals and Individuals hosts are on a single stack, is there any way i can do a different stacked columns for each IndexA Total with Individual host counts, Index B Total with individual host counts.?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371025#M39329</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2017-06-26T17:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371026#M39330</link>
      <description>&lt;P&gt;Not sure if that's possible.  See if this workaround works for you.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search 
 | bucket span=10m _time    
 | stats count by _time index host
 | appendpipe [ | where index="a" | timechart span=10m sum(count) by host | addtotals | rename Total as Total_a | eval keep=1 ]
| appendpipe [ | where index="b" | timechart span=10m sum(count) by host | addtotals | rename Total as Total_b | _time=_time+1 | eval keep=1 ]
 | where keep=1 | sort 0 _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2017 18:44:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371026#M39330</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-26T18:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do i do a timechart by category with individual counts of the hosts..??</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371027#M39331</link>
      <description>&lt;P&gt;This search works fine, i did some chart overlay with the total counts in my case. Thanks..!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 20:18:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-i-do-a-timechart-by-category-with-individual-counts-of/m-p/371027#M39331</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2017-06-27T20:18:38Z</dc:date>
    </item>
  </channel>
</rss>

