<?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: subsearch not running in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333248#M99108</link>
    <description>&lt;P&gt;An additional strange information:&lt;BR /&gt;
if I add to the first search the subsearch index, the search gives the correct result, in other words:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=my_index1 OR index=my_index2 sourcetype=my_sourcetype1 "Start time"="2017-12-04T11:00:01"
 | rename NetBIOS as hostname , "Start time" as scandate
 | eval date=substr(scandate,1,10)
 | stats dc(hostname) as tot_host_disc by date
 | appendcols [ search
      index=my_index2  sourcetype=my_sourcetype2 earliest=1511517602 latest=1512468002
      | eval shostname=substr(Hostname,0,1) 
      | WHERE NOT shostname="*" 
      | stats dc(Hostname) as tot_host
      ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the number of events is the same with or without index2&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 09:44:26 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-12-11T09:44:26Z</dc:date>
    <item>
      <title>subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333246#M99106</link>
      <description>&lt;P&gt;Hi at all,&lt;BR /&gt;
I have a very strange question:&lt;BR /&gt;
I have a search with a subsearch that's correctly running on a test environment (Splunk 7.0.0).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index1 sourcetype=my_sourcetype1 "Start time"="2017-12-04T11:00:01"
| rename NetBIOS as hostname , "Start time" as scandate
| eval date=substr(scandate,1,10)
| stats dc(hostname) as tot_host_disc by date
| appendcols [ search
     index=my_index2  sourcetype=my_sourcetype2 earliest=1511517602 latest=1512468002
     | eval shostname=substr(Hostname,0,1) 
     | WHERE NOT shostname="*" 
     | stats dc(Hostname) as tot_host
     ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now I copied it on a production environment (Splunk 7.0.0), but it doesn't run: the subsearch has always zero as result.&lt;/P&gt;

&lt;P&gt;The strange thing is that both the searches run correctly by themselves, but when together the subsearch has always zero results.&lt;BR /&gt;
In other words there a problem on the second search only when executed in subsearch.&lt;/P&gt;

&lt;P&gt;The only difference between the two environments is that test environment is a standalone server, instead production environment is based on two indexer clustered servers.&lt;/P&gt;

&lt;P&gt;All the servers are Linux&lt;/P&gt;

&lt;P&gt;It there a know issue on permission in subsearches?&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:31:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333246#M99106</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-11T09:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333247#M99107</link>
      <description>&lt;P&gt;Hi @cusello,&lt;/P&gt;

&lt;P&gt;Does user has appropriate rights for &lt;CODE&gt;index=my_index2&lt;/CODE&gt;??&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333247#M99107</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-11T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333248#M99108</link>
      <description>&lt;P&gt;An additional strange information:&lt;BR /&gt;
if I add to the first search the subsearch index, the search gives the correct result, in other words:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=my_index1 OR index=my_index2 sourcetype=my_sourcetype1 "Start time"="2017-12-04T11:00:01"
 | rename NetBIOS as hostname , "Start time" as scandate
 | eval date=substr(scandate,1,10)
 | stats dc(hostname) as tot_host_disc by date
 | appendcols [ search
      index=my_index2  sourcetype=my_sourcetype2 earliest=1511517602 latest=1512468002
      | eval shostname=substr(Hostname,0,1) 
      | WHERE NOT shostname="*" 
      | stats dc(Hostname) as tot_host
      ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the number of events is the same with or without index2&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333248#M99108</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-11T09:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333249#M99109</link>
      <description>&lt;P&gt;Another additional information:&lt;BR /&gt;
there'a a difference between two environments:&lt;BR /&gt;
In test environment index is created in the same app, instead in clustered production environment index is created in _cluster app.&lt;BR /&gt;
Could this thing create a problem only in subsearches?&lt;BR /&gt;
In other words, could an index created outside of the app give problems when used in subsearches?&lt;BR /&gt;
The same problem is present also using _internal index.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 09:53:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333249#M99109</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-11T09:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333250#M99110</link>
      <description>&lt;P&gt;Yes, infact the subsearch correctly runs if executed by itself!&lt;BR /&gt;
It seems that there's a limitation in subsearches.&lt;BR /&gt;
But not present if I add the second index to the main search and only in clustered environment!&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333250#M99110</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-11T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333251#M99111</link>
      <description>&lt;P&gt;Another additional information:&lt;BR /&gt;
I created a local non clustered index and subsearch correctly runs, so the problem is in clustering.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333251#M99111</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-11T10:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333252#M99112</link>
      <description>&lt;P&gt;last information:&lt;BR /&gt;
this problem is present in 7.0.0 version, I have the same architecture on 6.4.2 version and the problem isn't present.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 10:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333252#M99112</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-11T10:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch not running</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333253#M99113</link>
      <description>&lt;P&gt;the problem was that an architecture with two clustered indexers used each one both as Indexer and as Search Head doesn'r run on 7.0.0!&lt;BR /&gt;
In other words executing a search with subsearches on a clustered indexer it doesn't work, there must be a Search Head!&lt;/P&gt;

&lt;P&gt;I have this architecture on 6.4.2 and it's still running, instead on 7.0.0. probably is changed somebody in search execution so subsearches don't run if I execute this search on the Indexer.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-not-running/m-p/333253#M99113</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-12-19T16:28:59Z</dc:date>
    </item>
  </channel>
</rss>

