<?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 subsearch from previous results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583480#M203178</link>
    <description>&lt;P&gt;I need to run three different queries based on the each respective results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;1) In the first one query : index * search | top result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so let's say I pick the first result which is "abc"&lt;/P&gt;&lt;P&gt;2) In second query I use the first result and inject it in here&lt;/P&gt;&lt;P&gt;index=* search result=abc | top status&lt;/P&gt;&lt;P&gt;3) Use the second result and inject it in the third search&lt;/P&gt;&lt;P&gt;index=* search result=abc status=xyz | timechart count by "something"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if there is easier way to do it or this would take more time and bandwidth. Any help would be really helpful. Need some guidance here.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 07:06:59 GMT</pubDate>
    <dc:creator>bijodev1</dc:creator>
    <dc:date>2022-02-03T07:06:59Z</dc:date>
    <item>
      <title>subsearch from previous results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583480#M203178</link>
      <description>&lt;P&gt;I need to run three different queries based on the each respective results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;1) In the first one query : index * search | top result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;so let's say I pick the first result which is "abc"&lt;/P&gt;&lt;P&gt;2) In second query I use the first result and inject it in here&lt;/P&gt;&lt;P&gt;index=* search result=abc | top status&lt;/P&gt;&lt;P&gt;3) Use the second result and inject it in the third search&lt;/P&gt;&lt;P&gt;index=* search result=abc status=xyz | timechart count by "something"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if there is easier way to do it or this would take more time and bandwidth. Any help would be really helpful. Need some guidance here.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 07:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583480#M203178</guid>
      <dc:creator>bijodev1</dc:creator>
      <dc:date>2022-02-03T07:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch from previous results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583483#M203180</link>
      <description>&lt;P&gt;Subsearches are execute first so try nesting the searches like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* 
    [ search index=*
        [ search index=* 
        | top result
        | head 1
        | table result ]
    | top status result
    | head 1
    | table status result ]
| timechart count by "something"index=* &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Feb 2022 07:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583483#M203180</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-03T07:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch from previous results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583551#M203221</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; it worked as expected.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 13:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/subsearch-from-previous-results/m-p/583551#M203221</guid>
      <dc:creator>bijodev1</dc:creator>
      <dc:date>2022-02-03T13:56:32Z</dc:date>
    </item>
  </channel>
</rss>

