<?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 make my simple timechart search run faster? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365168#M107700</link>
    <description>&lt;P&gt;| tstats count WHERE index = index sourcetype = sourcetype earliest  = sometime  BY _time &lt;BR /&gt;
you can add span and other components to the command. More about | tstats here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Tstats"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Tstats&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 20:37:30 GMT</pubDate>
    <dc:creator>adonio</dc:creator>
    <dc:date>2017-03-16T20:37:30Z</dc:date>
    <item>
      <title>How to make my simple timechart search run faster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365167#M107699</link>
      <description>&lt;P&gt;I'm guessing this should be a very basic task, if it's possible.&lt;/P&gt;

&lt;P&gt;My current search below produces exactly what I want, but is too slow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;myindex&amp;gt; sourcetype=&amp;lt;mysourcetype&amp;gt; earliest=-7d@d| timechart span=1h count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, the individual events are large (sometimes hundreds of lines), the event counts are large (several hundred thousand), and there are dozens of field extractions occurring for these events, so, the search takes a while to complete.&lt;/P&gt;

&lt;P&gt;In an effort to make it faster, I'm using this with success (about 1/8th the time to complete):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;myindex&amp;gt; sourcetype=&amp;lt;mysourcetype&amp;gt; earliest=-7d@d | fields + index sourcetype| timechart span=1h count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I'm wondering if there's an easy, faster way to accomplish the same thing. Perhaps with tstats?&lt;/P&gt;

&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 20:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365167#M107699</guid>
      <dc:creator>adamsmith47</dc:creator>
      <dc:date>2017-03-16T20:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my simple timechart search run faster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365168#M107700</link>
      <description>&lt;P&gt;| tstats count WHERE index = index sourcetype = sourcetype earliest  = sometime  BY _time &lt;BR /&gt;
you can add span and other components to the command. More about | tstats here: &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Tstats"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Tstats&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 20:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365168#M107700</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-03-16T20:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make my simple timechart search run faster?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365169#M107701</link>
      <description>&lt;P&gt;Hello adamsmith47,&lt;/P&gt;

&lt;P&gt;You will want to setup an Accelerated Report.  This will help to reduce the amount of time that it takes for this type of search to complete.  The following is a link to the Documentation for setting up Accelerated Reports:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Report/Acceleratereports"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Report/Acceleratereports&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 20:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-my-simple-timechart-search-run-faster/m-p/365169#M107701</guid>
      <dc:creator>jethompson_splu</dc:creator>
      <dc:date>2017-03-16T20:38:20Z</dc:date>
    </item>
  </channel>
</rss>

