<?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 Splunk query returns values when run as separate search, but is not working as a subsearch? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-Splunk-query-returns-values-when-run-as-separate-search-but/m-p/161170#M45591</link>
    <description>&lt;P&gt;Your sub search could be timing out before it completes. The default time is 60 seconds, so if your search runs longer than that, it could just be getting killed before it can return results.&lt;/P&gt;

&lt;P&gt;References:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Search/Aboutsubsearches"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Search/Aboutsubsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Limitsconf&lt;/A&gt;&lt;BR /&gt;
Look for the [subsearch] section.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2014 16:40:29 GMT</pubDate>
    <dc:creator>jimodonald</dc:creator>
    <dc:date>2014-10-13T16:40:29Z</dc:date>
    <item>
      <title>Why Splunk query returns values when run as separate search, but is not working as a subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-Splunk-query-returns-values-when-run-as-separate-search-but/m-p/161169#M45590</link>
      <description>&lt;P&gt;My actual search &lt;BR /&gt;
sourcetype="xyz" Operation=q | eval msg=if(Status == "fail",[search sourcetype="xyz" Operation="p" Status="Fail" |rename message as errorMessage| eval errorMessage=replace(errorMessage,":","")|return $errorMessage ],"successful")|table Status,platform,msg&lt;/P&gt;

&lt;P&gt;does not gives values and when ran [search sourcetype="xyz" Operation="p" Status="Fail" |rename message as errorMessage| eval errorMessage=replace(errorMessage,":","")|return $errorMessage ] separately works fine.&lt;/P&gt;

&lt;P&gt;I am not sure what is missing.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 15:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-Splunk-query-returns-values-when-run-as-separate-search-but/m-p/161169#M45590</guid>
      <dc:creator>tehale</dc:creator>
      <dc:date>2014-10-13T15:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why Splunk query returns values when run as separate search, but is not working as a subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-Splunk-query-returns-values-when-run-as-separate-search-but/m-p/161170#M45591</link>
      <description>&lt;P&gt;Your sub search could be timing out before it completes. The default time is 60 seconds, so if your search runs longer than that, it could just be getting killed before it can return results.&lt;/P&gt;

&lt;P&gt;References:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Search/Aboutsubsearches"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Search/Aboutsubsearches&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Limitsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/admin/Limitsconf&lt;/A&gt;&lt;BR /&gt;
Look for the [subsearch] section.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 16:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-Splunk-query-returns-values-when-run-as-separate-search-but/m-p/161170#M45591</guid>
      <dc:creator>jimodonald</dc:creator>
      <dc:date>2014-10-13T16:40:29Z</dc:date>
    </item>
  </channel>
</rss>

