<?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: Why are small searches taking incredibly long?! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243498#M72469</link>
    <description>&lt;P&gt;The problem is the &lt;CODE&gt;regex&lt;/CODE&gt; command.  Try this search instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source="SOME_SOURCE_LOG_FILE" (*error* OR *exception*) | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Oct 2016 15:35:40 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-10-12T15:35:40Z</dc:date>
    <item>
      <title>Why are small searches taking incredibly long?!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243496#M72467</link>
      <description>&lt;P&gt;I have been hunting down users in my environment running real-time searches as I thought that they were the root cause, but I have also seen from time to time searches like the ones below lingering around hte Jobs queue.  The impact of course is that we start to hit our concurrent search limit&lt;/P&gt;

&lt;P&gt;&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/1990i2A48CD3960BD09B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Looking at the logs for these searches, majority of them seem to be stuck in the following loop:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10-11-2016 21:23:18.306 INFO  UnifiedSearch - Processed search targeting arguments
10-11-2016 21:23:18.306 INFO  DispatchThread - Generating results preview took 1 ms
10-11-2016 21:23:23.306 INFO  SearchParser - PARSING: timechart  count
10-11-2016 21:23:23.306 INFO  bucket - Setting info._summary_maxtimespan = 5s
10-11-2016 21:23:23.306 INFO  SearchParser - PARSING: stats count AS query| search query = 10
10-11-2016 21:23:23.306 INFO  StatsProcessor - No group-by fields specified, incompatible for high cardinality improvements
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The search that the log above came from is the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="SOME_SOURCE_LOG_FILE" | regex _raw=".Error.|.error.|.Exception.|.exception."|timechart count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 11:57:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243496#M72467</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2016-10-12T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why are small searches taking incredibly long?!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243497#M72468</link>
      <description>&lt;P&gt;If you run that search for the last 60 minutes, how many events does it return?  How many different hosts do they come from?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243497#M72468</guid>
      <dc:creator>lycollicott</dc:creator>
      <dc:date>2016-10-12T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why are small searches taking incredibly long?!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243498#M72469</link>
      <description>&lt;P&gt;The problem is the &lt;CODE&gt;regex&lt;/CODE&gt; command.  Try this search instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source="SOME_SOURCE_LOG_FILE" (*error* OR *exception*) | timechart count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243498#M72469</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-10-12T15:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why are small searches taking incredibly long?!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243499#M72470</link>
      <description>&lt;P&gt;Thanks for this.  Would you mind elaborating?  Why would the regex cause this?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 16:48:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-are-small-searches-taking-incredibly-long/m-p/243499#M72470</guid>
      <dc:creator>paimonsoror</dc:creator>
      <dc:date>2016-10-12T16:48:24Z</dc:date>
    </item>
  </channel>
</rss>

