<?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 graph the event count by sourcetype on a specific index per host over time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265213#M79733</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=YourIndexHere by _time host sourcetype span=30m | eval metric=host.":".sourcetype | timechart span=30m sum(count) by metric
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Mar 2016 17:14:03 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-30T17:14:03Z</dc:date>
    <item>
      <title>How to graph the event count by sourcetype on a specific index per host over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265209#M79729</link>
      <description>&lt;P&gt;I have found a lot of ways to do one or the other of these, but short summary of what we have with theoretical numbers&lt;/P&gt;

&lt;P&gt;10 hosts&lt;BR /&gt;
10 logs per host going to one index&lt;/P&gt;

&lt;P&gt;I would like to use the index as a starting point since I am specifically looking for event count that goes to that index. (Java Logs)&lt;/P&gt;

&lt;P&gt;How would I graph the following please?&lt;/P&gt;

&lt;P&gt;over 7 day period, what is the event count per log per host - 30 min buckets - end result would be something like...&lt;/P&gt;

&lt;P&gt;host1 - log1 - 8:00-8:30 50 events&lt;BR /&gt;
host1 - log2 - 8:00-8:30 50 events&lt;BR /&gt;
host1 - log3 - 8:00-8:30 50 events&lt;BR /&gt;
host1 - log4 - 8:00-8:30 50 events&lt;BR /&gt;
host1 - log5 - 8:00-8:30 50 events&lt;BR /&gt;
host2 - log1 - 8:00-8:30 50 events&lt;BR /&gt;
host2 - log2 - 8:00-8:30 50 events&lt;BR /&gt;
host2 - log3 - 8:00-8:30 50 events&lt;BR /&gt;
host2 - log4 - 8:00-8:30 50 events&lt;BR /&gt;
host2 - log5 - 8:00-8:30 50 events&lt;/P&gt;

&lt;P&gt;etc...&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
John&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265209#M79729</guid>
      <dc:creator>dolejh76</dc:creator>
      <dc:date>2016-03-30T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph the event count by sourcetype on a specific index per host over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265210#M79730</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=YourIndexHere by _time host sourcetype span=30m 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265210#M79730</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-30T15:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph the event count by sourcetype on a specific index per host over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265211#M79731</link>
      <description>&lt;P&gt;Love it so far - thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 16:30:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265211#M79731</guid>
      <dc:creator>dolejh76</dc:creator>
      <dc:date>2016-03-30T16:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph the event count by sourcetype on a specific index per host over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265212#M79732</link>
      <description>&lt;P&gt;Spoke a little too soon... the table is exactly what I need.&lt;/P&gt;

&lt;P&gt;The graph is just total count and is not separating by host / sourcetype.  Is this something I need to configure on the graph or something that should be configured on the query?  Worse case I can export to excel and graph on a pivot chart but would be nice to have it on a dashboard.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;JD&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 17:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265212#M79732</guid>
      <dc:creator>dolejh76</dc:creator>
      <dc:date>2016-03-30T17:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph the event count by sourcetype on a specific index per host over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265213#M79733</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=YourIndexHere by _time host sourcetype span=30m | eval metric=host.":".sourcetype | timechart span=30m sum(count) by metric
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2016 17:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265213#M79733</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-30T17:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to graph the event count by sourcetype on a specific index per host over time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265214#M79734</link>
      <description>&lt;P&gt;Love it - thank you very much for your quit response - really appreciate it!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 17:16:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-graph-the-event-count-by-sourcetype-on-a-specific-index/m-p/265214#M79734</guid>
      <dc:creator>dolejh76</dc:creator>
      <dc:date>2016-03-30T17:16:45Z</dc:date>
    </item>
  </channel>
</rss>

