<?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 does my subsearch maxtime setting in limits.conf have no effect? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195254#M56303</link>
    <description>&lt;P&gt;Side note: Use &lt;CODE&gt;| format&lt;/CODE&gt; to avoid having to assemble the search string manually.&lt;/P&gt;

&lt;P&gt;If you're on 6.2.x, add this to limits.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search_info]
infocsv_log_level = DEBUG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then run your search again with the &lt;CODE&gt;ip&lt;/CODE&gt;-subsearch and look at the debug output at the top of the job inspector. That should present you with a complete list of IPs used for filtering.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Jul 2015 17:13:07 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-07-08T17:13:07Z</dc:date>
    <item>
      <title>Why does my subsearch maxtime setting in limits.conf have no effect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195251#M56300</link>
      <description>&lt;P&gt;I have &lt;CODE&gt;/my-app/local/limits.conf&lt;/CODE&gt; with the following content:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[subsearch]
maxtime = 600

[join]
subsearch_maxtime = 600
subsearch_timeout = 800
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Yet when search finished - job inspector still claims that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [subsearch]: Search auto-finalized after time limit (60 seconds) reached.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this means the setting is ignored, or does this mean that this message is actually incorrect?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 23:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195251#M56300</guid>
      <dc:creator>gesman</dc:creator>
      <dc:date>2015-07-07T23:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my subsearch maxtime setting in limits.conf have no effect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195252#M56301</link>
      <description>&lt;P&gt;Make sure you've restarted after making the changes, and run these two to check that Splunk understands your configuration:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./bin/splunk cmd btool --debug limits list subsearch
./bin/splunk cmd btool --debug limits list join
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2015 23:25:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195252#M56301</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-07T23:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my subsearch maxtime setting in limits.conf have no effect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195253#M56302</link>
      <description>&lt;P&gt;These commands shows that Splunk honors the limits i set in limits.conf. Which means that &lt;CODE&gt;...time limit (60 seconds) reached.&lt;/CODE&gt; message is a bug? &lt;/P&gt;

&lt;P&gt;Although I did experiment by comparing results of two queries - one using subsearch and another one using hardcoded search using values that subsearch suppose to return:&lt;BR /&gt;
&lt;CODE&gt;index=x page=hello [search index=x user=joe| dedup ip | fields ip] | stats c&lt;/CODE&gt; - this returned c=150 &lt;BR /&gt;
with:&lt;BR /&gt;
&lt;CODE&gt;index=x user=joe | fields ip | dedup ip | mvcombine ip | eval ip="(ip=" + mvjoin(ip, " OR ip=") + ")" | table ip&lt;/CODE&gt;&lt;BR /&gt;
 - this returned fragment of search query: &lt;CODE&gt;(ip=1.2.3.4 OR ip=5.6.7.8 OR ip=...)&lt;/CODE&gt;&lt;BR /&gt;
 - So i copy/pasted this fragment and rerun main query like this:&lt;BR /&gt;
&lt;CODE&gt;index=x page=hello (ip=1.2.3.4 OR ip=5.6.7.8 OR ip=...) | stats c&lt;/CODE&gt; - this returned c=200 &lt;/P&gt;

&lt;P&gt;Which means query with subsearch still missed something, even with high limits value set?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 14:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195253#M56302</guid>
      <dc:creator>gesman</dc:creator>
      <dc:date>2015-07-08T14:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my subsearch maxtime setting in limits.conf have no effect?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195254#M56303</link>
      <description>&lt;P&gt;Side note: Use &lt;CODE&gt;| format&lt;/CODE&gt; to avoid having to assemble the search string manually.&lt;/P&gt;

&lt;P&gt;If you're on 6.2.x, add this to limits.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[search_info]
infocsv_log_level = DEBUG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then run your search again with the &lt;CODE&gt;ip&lt;/CODE&gt;-subsearch and look at the debug output at the top of the job inspector. That should present you with a complete list of IPs used for filtering.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 17:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-my-subsearch-maxtime-setting-in-limits-conf-have-no/m-p/195254#M56303</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-08T17:13:07Z</dc:date>
    </item>
  </channel>
</rss>

