<?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: tstats timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295239#M89105</link>
    <description>&lt;P&gt;To add to this post for future readers, if you did want to use tstats, then you could using the following syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE (index=*) BY index _time span=1d prestats=t 
| timechart span=1d count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;adjust the span period (on both lines as they must match) to whatever you prefer based on your search (1h, 4h, 5m, etc...)&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2018 14:57:40 GMT</pubDate>
    <dc:creator>DEAD_BEEF</dc:creator>
    <dc:date>2018-09-11T14:57:40Z</dc:date>
    <item>
      <title>tstats timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295237#M89103</link>
      <description>&lt;P&gt;I am trying to do a time chart of available indexes in my environment , I already tried below query with no luck &lt;/P&gt;

&lt;P&gt;| tstats count where index=* by index _time&lt;/P&gt;

&lt;P&gt;but i want results in the same format as &lt;/P&gt;

&lt;P&gt;index=* | timechart count by index limit=50&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/3622iD4E7C707B7D66B6D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 10:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295237#M89103</guid>
      <dc:creator>kunalmao</dc:creator>
      <dc:date>2017-10-12T10:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: tstats timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295238#M89104</link>
      <description>&lt;P&gt;Hi kunalmao,&lt;BR /&gt;
why you want to use tstats if the second solution solves your needs?&lt;BR /&gt;
If the problem is performance, use &lt;CODE&gt;| metasearch&lt;/CODE&gt; before index=*&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 10:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295238#M89104</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-10-12T10:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: tstats timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295239#M89105</link>
      <description>&lt;P&gt;To add to this post for future readers, if you did want to use tstats, then you could using the following syntax:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE (index=*) BY index _time span=1d prestats=t 
| timechart span=1d count by index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;adjust the span period (on both lines as they must match) to whatever you prefer based on your search (1h, 4h, 5m, etc...)&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 14:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/295239#M89105</guid>
      <dc:creator>DEAD_BEEF</dc:creator>
      <dc:date>2018-09-11T14:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: tstats timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/534833#M151149</link>
      <description>&lt;P&gt;I would do it by including&amp;nbsp; _time in the tstats' by statement&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=* by _time index | timechart span=1mon sum(count) by index&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 18:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstats-timechart/m-p/534833#M151149</guid>
      <dc:creator>guarisma</dc:creator>
      <dc:date>2021-01-05T18:42:10Z</dc:date>
    </item>
  </channel>
</rss>

