<?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 Is it possible to use saved search RESULTS as a subsearch? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104125#M26936</link>
    <description>&lt;P&gt;My problem with this is that the saved search takes longer than 60 seconds to run, so I only get partial answers if I try to run it as a subsearch. (it times out)&lt;/P&gt;

&lt;P&gt;What is key about my question are the words 'saved search results'. I have created a saved search and set up another search to use it as a subsearch. The problem I encounter is that when used as a subsearch, the results are ignored and the saved search is run fresh. The saved search takes longer than 60 seconds to run, so I only get partial answers when it runs 'live' in a subsearch.&lt;/P&gt;

&lt;P&gt;What I need is the ability to retrieve results from a saved search and use those as a subsearch so that I don't time out.&lt;/P&gt;

&lt;P&gt;This is an abbreviated example of what I'm doing now. This just runs the saved search fresh for the subsearch instead of pulling the saved results.&lt;/P&gt;

&lt;P&gt;sourcetype=Data_Input_File  [savedsearch timeless_base_search] | ... etc ... | table IPAddress MACAddress&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:42:04 GMT</pubDate>
    <dc:creator>dspracklen</dc:creator>
    <dc:date>2020-09-28T12:42:04Z</dc:date>
    <item>
      <title>Is it possible to use saved search RESULTS as a subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104125#M26936</link>
      <description>&lt;P&gt;My problem with this is that the saved search takes longer than 60 seconds to run, so I only get partial answers if I try to run it as a subsearch. (it times out)&lt;/P&gt;

&lt;P&gt;What is key about my question are the words 'saved search results'. I have created a saved search and set up another search to use it as a subsearch. The problem I encounter is that when used as a subsearch, the results are ignored and the saved search is run fresh. The saved search takes longer than 60 seconds to run, so I only get partial answers when it runs 'live' in a subsearch.&lt;/P&gt;

&lt;P&gt;What I need is the ability to retrieve results from a saved search and use those as a subsearch so that I don't time out.&lt;/P&gt;

&lt;P&gt;This is an abbreviated example of what I'm doing now. This just runs the saved search fresh for the subsearch instead of pulling the saved results.&lt;/P&gt;

&lt;P&gt;sourcetype=Data_Input_File  [savedsearch timeless_base_search] | ... etc ... | table IPAddress MACAddress&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104125#M26936</guid>
      <dc:creator>dspracklen</dc:creator>
      <dc:date>2020-09-28T12:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use saved search RESULTS as a subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104126#M26937</link>
      <description>&lt;P&gt;Have you tried it with a pipe as the first character after the leading [ of the subsearch (e.g. &lt;CODE&gt;[ | savedsearch timeless_base_search ]&lt;/CODE&gt;). If that still doesn't work for you, consider &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Loadjob"&gt;loadjob&lt;/A&gt;. An example might look like &lt;CODE&gt;| loadjob savedsearch="admin:search:timeless_base_search"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Another thing you could consider is to constrain the runtime of the subsearch, even if you want a &lt;EM&gt;different&lt;/EM&gt; search scope for the outer search. This can be done using the "earliest" and "latest" keywords in your subsearch.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2012 17:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104126#M26937</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2012-10-26T17:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use saved search RESULTS as a subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104127#M26938</link>
      <description>&lt;P&gt;I will give those first two options a try. It was also suggested to me that I have the internal saved search output to a lookup table and import THAT as the subsearch, effectively. (egads, trying to describe some of this clearly is difficulty)&lt;/P&gt;

&lt;P&gt;As for the time constraints, that's not something I can change. That's why it's 'timeless' in this instance. I don't need to run it often, but I do need a full answer.&lt;/P&gt;

&lt;P&gt;Thanks much for the comment. I'll let you know how those suggestions work.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2012 18:20:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104127#M26938</guid>
      <dc:creator>dspracklen</dc:creator>
      <dc:date>2012-10-26T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use saved search RESULTS as a subsearch?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104128#M26939</link>
      <description>&lt;P&gt;Excellent! The 'loadjob' advice worked like a charm. The pipe didn't solve this problem, but now with the other advice it all works as I'd hoped.&lt;/P&gt;

&lt;P&gt;Thanks much!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2012 18:59:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-use-saved-search-RESULTS-as-a-subsearch/m-p/104128#M26939</guid>
      <dc:creator>dspracklen</dc:creator>
      <dc:date>2012-10-26T18:59:30Z</dc:date>
    </item>
  </channel>
</rss>

