<?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 search total events by sourcetype using tstats with timechart to put in a summary index? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237954#M70715</link>
    <description>&lt;P&gt;regarding that timechart, you can check this one..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=main by _time host sourcetype span=30m | timechart span=30m sum(count) by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if the issue is resolved, can you accept this answer. &lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2016 11:47:19 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2016-08-16T11:47:19Z</dc:date>
    <item>
      <title>How to search total events by sourcetype using tstats with timechart to put in a summary index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237951#M70712</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I need a top count of the total number of events by sourcetype to be written in tstats(or something as fast) with timechart put into a summary index, and then report on that SI. Using sitimechart changes the columns of my inital tstats command, so I end up having no count to report on. Any thoughts? My initial search before the sitimechart is: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=main* groupby sourcetype _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 11:01:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237951#M70712</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2016-08-16T11:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to search total events by sourcetype using tstats with timechart to put in a summary index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237952#M70713</link>
      <description>&lt;P&gt;try this one - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | tstats count WHERE index=* by sourcetype _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or, main* is required, then&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | tstats count WHERE index=main* by sourcetype _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Aug 2016 11:20:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237952#M70713</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-08-16T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to search total events by sourcetype using tstats with timechart to put in a summary index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237953#M70714</link>
      <description>&lt;P&gt;I found out the issue - I was just being an idiot and wrote my si command differently to the actual timechart. Thanks anyway!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 11:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237953#M70714</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2016-08-16T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search total events by sourcetype using tstats with timechart to put in a summary index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237954#M70715</link>
      <description>&lt;P&gt;regarding that timechart, you can check this one..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=main by _time host sourcetype span=30m | timechart span=30m sum(count) by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if the issue is resolved, can you accept this answer. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 11:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-total-events-by-sourcetype-using-tstats-with/m-p/237954#M70715</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-08-16T11:47:19Z</dc:date>
    </item>
  </channel>
</rss>

