<?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 using time from lookup in main search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-time-from-lookup-in-main-search/m-p/597284#M207945</link>
    <description>&lt;P&gt;Subsearches generally execute before the main search, which essentially means you cannot pass information from the main search to the subsearch as you are trying to do.&lt;/P&gt;&lt;P&gt;However, you might be able to do something with the map command rather than the append command, but this has performance implications, so proceed with caution.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 04:48:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-05-11T04:48:50Z</dc:date>
    <item>
      <title>Subsearch using time from lookup in main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-time-from-lookup-in-main-search/m-p/597267#M207934</link>
      <description>&lt;P&gt;I am performing a lookup in a main search which returns earliest_event and latest_event timestamp values.&amp;nbsp; I would like to use these timestamp values as parameters for a subsearch.&amp;nbsp; The search would be similar to the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo
...........
| lookup lookuptable.csv session_id OUTPUTNEW session_id, earliest_event, latest_event
...........
| append
[ search index=bar earliest=earliest_event latest=latest_event
...........]&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The time parameters for the subsearch are not being accepted, though.&lt;BR /&gt;&lt;BR /&gt;Is there a different way that this can be accomplished?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 23:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-time-from-lookup-in-main-search/m-p/597267#M207934</guid>
      <dc:creator>adamblock2</dc:creator>
      <dc:date>2022-05-10T23:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch using time from lookup in main search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-time-from-lookup-in-main-search/m-p/597284#M207945</link>
      <description>&lt;P&gt;Subsearches generally execute before the main search, which essentially means you cannot pass information from the main search to the subsearch as you are trying to do.&lt;/P&gt;&lt;P&gt;However, you might be able to do something with the map command rather than the append command, but this has performance implications, so proceed with caution.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 04:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-using-time-from-lookup-in-main-search/m-p/597284#M207945</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-11T04:48:50Z</dc:date>
    </item>
  </channel>
</rss>

