<?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: how to perform a search that has the result of another search as input in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548157#M155474</link>
    <description>&lt;P&gt;I have tried both yours with the raw file and it works perfectly.&lt;BR /&gt;when I run it with my data it only pulls out 35 lines but without the OLD_ID, no value on this field.&lt;BR /&gt;the extrapolated events must be 940 instead it shows only 35. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know wy....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Apr 2021 09:14:00 GMT</pubDate>
    <dc:creator>antonio147</dc:creator>
    <dc:date>2021-04-16T09:14:00Z</dc:date>
    <item>
      <title>how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548033#M155411</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;i can't do a search on Splunk where the values ​​are the result of another search.&lt;BR /&gt;I search:&lt;BR /&gt;index = summary | search ..... | table LINK, OLD_LINK, DATA, ID&lt;BR /&gt;the result is:&lt;BR /&gt;LINK&amp;nbsp; &amp;nbsp;| OLD_LINK&amp;nbsp; &amp;nbsp; &amp;nbsp;| DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ID&lt;BR /&gt;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/02/21&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;BR /&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02/01/21&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;BR /&gt;.........&lt;BR /&gt;in the same index now I want to find all those links that are in the OLD LINK field of the previous search and extract the DATA and ID for the link (OLD_LINK)&lt;BR /&gt;that is:&lt;BR /&gt;LINK&amp;nbsp; |&amp;nbsp; &amp;nbsp; OLD_LINK&amp;nbsp; &amp;nbsp; &amp;nbsp;| DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp;ID&lt;BR /&gt;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/10/20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99&lt;BR /&gt;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15/08/20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77&lt;/P&gt;&lt;P&gt;and at the end have a table like:&lt;BR /&gt;LINK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | OLD_LINK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| DATE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | OLD_DATA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| OLD_ID&lt;BR /&gt;100&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01/02/21&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/10/20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99&lt;BR /&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02/01/21&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15/08/20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77&lt;/P&gt;&lt;P&gt;I tried the JOIN but it doesn't work.&lt;BR /&gt;Can you help me?&lt;BR /&gt;I state that I am not an ADMIN and I do not have the permissions to create a lookup table, I have to run it in a single query (I think)&lt;BR /&gt;Tks&lt;BR /&gt;Bye&lt;BR /&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:38:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548033#M155411</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-15T15:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548034#M155412</link>
      <description>&lt;P&gt;You should be able to use the map command to accomplish this. Depending on what your data looks like it might make more sense to replace the 'table' commands with 'stats values(...)'. But in general you're looking at something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary earliest=-30d latest=now | search ..... | table LINK, OLD_LINK, DATA, ID | map [ search index=summary LINK=$OLD_LINK$ earliest=-60d latest=-30d | rename DATE as OLD_DATE, ID AS OLD_ID, LINK as OLD_LINK | eval DATE="$DATE$", ID="$ID$", LINK="$LINK$" ] | table LINK OLD_LINK DATE ID OLD_DATA OLD_ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548034#M155412</guid>
      <dc:creator>ericjorgensenjr</dc:creator>
      <dc:date>2021-04-15T15:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548037#M155415</link>
      <description>&lt;P&gt;You might be able to do this by copying the data depending on whether OLD_LINK has a value&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="LINK,OLD_LINK,DATE,ID
100,10,01/02/21,1
101,11,02/01/21,2
10,,10/10/20,99
11,,15/08/20,77"
| multikv forceheader=1
| fields - _* linecount



| eval OLD_DATE=if(isnotnull(OLD_LINK),null,DATE)
| eval OLD_ID=if(isnotnull(OLD_LINK),null,ID)
| eval DATE=if(isnotnull(OLD_LINK),DATE,null)
| eval ID=if(isnotnull(OLD_LINK),ID,null)
| eval OLD_LINK=if(isnotnull(OLD_LINK),OLD_LINK,LINK)
| eval LINK=if(OLD_LINK==LINK,null,LINK)
| selfjoin OLD_LINK
| fields LINK OLD_LINK DATE ID OLD_DATE OLD_ID&lt;/LI-CODE&gt;&lt;P&gt;The potential problem here is that you may have some links which haven't been replaced and it is unclear (since they aren't in your examples) what you would want to do in this situation.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 16:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548037#M155415</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-15T16:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548042#M155418</link>
      <description>&lt;P&gt;I have links that have a field with the old link.&lt;BR /&gt;So I first look for all links that have an OLD_LINK then I have to redo the search on the same LINK field which has a DATA and a populated ID.&lt;/P&gt;&lt;P&gt;Let me give you an example:&lt;/P&gt;&lt;P&gt;I have LINK: 1,2,3,4,5 ........., 100,101, .......&lt;BR /&gt;now links 100 and 101 have populated the OLD LINK field which are: 4,5 for example.&lt;BR /&gt;Now I have to find the IDs and the DATE of 4,5 to have a final table like this:&lt;/P&gt;&lt;P&gt;LINK OLD_LINK DATA DATA_OLD ID ID_OLD&lt;BR /&gt;100 4 10/20 01/19 X A&lt;BR /&gt;101 5 12/20 05/2018 Y B&lt;/P&gt;&lt;P&gt;in practice I have to do the search twice on the same LINK field and the criterion is all those links that have OLD_LINK find the starting date and the ID both old and new&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 16:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548042#M155418</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-15T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548062#M155427</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ericjorgensenjr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried your solution with MAP unfortunately it didn't give me any event.&lt;BR /&gt;Returned this message:&lt;/P&gt;&lt;P&gt;The following messages were returned by the search subsystem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;info :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;No matching fields exist.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;warn :&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="text"&gt;The search result count (902) exceeds maximum (10), using max. To override it, set maxsearches appropriately.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks for your help, I hope to find a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 17:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548062#M155427</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-15T17:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548064#M155429</link>
      <description>&lt;P&gt;2 things to look at:&lt;/P&gt;&lt;P&gt;- Set maxmatches=9999 in your map command | map maxmatches=9999 [ ... ]&lt;/P&gt;&lt;P&gt;- In the search I proposed I made some assumptions about earliest and latest in the searches, check these values to make sure they line up with where you expect the data to occur&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 17:42:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548064#M155429</guid>
      <dc:creator>ericjorgensenjr</dc:creator>
      <dc:date>2021-04-15T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548066#M155431</link>
      <description>&lt;P&gt;most likely there are more than 10,000 events, perhaps this could be the problem.&lt;BR /&gt;In your solution I did not understand why you use eval LINK = "$ LINK $" what is it for?&lt;BR /&gt;Forgive my ignorance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I try to set maxmatches = 9999&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the search I proposed I made some assumptions about earliest and latest in the searches, check these values to make sure they line up with where you expect the data to occur &amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/SPAN&gt;(I didn't quite understand what you mean)&lt;/P&gt;&lt;P&gt;I hope I have explained my research well .......&lt;BR /&gt;I have to find both the new and the old LINKs and of these old ones find DATA and ID to have at the end&lt;/P&gt;&lt;P&gt;LINK, OLD_LINK, DATA, OLD_DATA, ID, OLD_ID, ... and other fields that are only in the first search.&lt;/P&gt;&lt;P&gt;Tks&lt;BR /&gt;Bye&lt;BR /&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548066#M155431</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-15T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548067#M155432</link>
      <description>&lt;P&gt;Essentially, this is what my solution does (based on the limited example you have provided) - taking the piece after the blank lines (the piece before the blank lines merely sets up a run anywhere example set of data) - the first two lines effectively copies the date and id if the old link is null, which it would be if it was an old (non-replacement) record. The next two lines clear the date and id from the old record. The next two lines move the link to old link (clearing link in the process). The self join then joins the events by the old link id. Final line just selects the fields you wanted.&lt;/P&gt;&lt;P&gt;Have you tried this? If it doesn't work for you, please explain why not.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 18:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548067#M155432</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-15T18:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548095#M155445</link>
      <description>&lt;P&gt;with your solution the LINK, DATE, ID fields are not populated, only the old ones but no "new" data.&lt;/P&gt;&lt;P&gt;only the OLDs are populated&lt;/P&gt;&lt;P&gt;I wrote you the specifications better, I hope it is clearer.&lt;BR /&gt;In any case, thanks for the help.&lt;BR /&gt;Bye&lt;BR /&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 20:40:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548095#M155445</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-15T20:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548148#M155472</link>
      <description>&lt;P&gt;Hi IT Whisperer,&lt;BR /&gt;I tried your suggestion and tried to understand better, even with your explanations.&lt;BR /&gt;If I understand correctly, check if OLD_LINK is populated and move the ID and DATE to the OLD variable.&lt;BR /&gt;My goal is: of this index = index1 first check that the LINK respect some conditions such as: it must have the ID and DATE field not null.&lt;BR /&gt;I do a dedup for LINK and get a list of LINK, OLD_LINK, ID, DATE plus other fields .....&lt;BR /&gt;From this list obtained I have to check, always on the same index1, that the values ​​that are in the OLD_LINK field are present in the LINK field and extract the ID and DATE renaming them in OLD.&lt;/P&gt;&lt;P&gt;In practice there are links that have changed value and I have to find when they changed value and before what value did they have?&lt;/P&gt;&lt;P&gt;An example:&lt;BR /&gt;LINK = 1 was created in 2019 with an ID = 999&lt;BR /&gt;now this LINK has been changed to a new LINK = 100 on 2021 with ID = 888&lt;/P&gt;&lt;P&gt;so I will have: LINK = 100, OLD_LINK = 1, DATA = 2021, ID = 888&lt;/P&gt;&lt;P&gt;every day an event is written even if nothing has changed.&lt;BR /&gt;so today I will have in the LINK field both the value 100 and the value 1, with different dates and IDs.&lt;/P&gt;&lt;P&gt;My goal is to extract both the new LINK with the DATE and ID, and the old LINK with its DATA and its ID.&lt;/P&gt;&lt;P&gt;That is:&lt;BR /&gt;LINK = 100, OLD_LINK = 1, DATE = 2021, OLD_DATE = 2019, ID = 888, OLD_ID = 999&lt;/P&gt;&lt;P&gt;This is what I can't do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Tks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 07:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548148#M155472</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-16T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548150#M155473</link>
      <description>&lt;P&gt;This run-anywhere example does exactly what you are asking for. Try copying to a new search and running it a line at a time to see what each line does.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval _raw="LINK,OLD_LINK,DATE,ID,OTHER
1,,2019,999,abc
100,1,2021,888,def
1,,2019,999,abc
100,1,2021,888,def"
| multikv forceheader=1
| fields - _* linecount


| dedup LINK
| eval OLD_DATE=if(isnotnull(OLD_LINK),null,DATE)
| eval OLD_ID=if(isnotnull(OLD_LINK),null,ID)
| eval DATE=if(isnotnull(OLD_LINK),DATE,null)
| eval ID=if(isnotnull(OLD_LINK),ID,null)
| eval OLD_LINK=if(isnotnull(OLD_LINK),OLD_LINK,LINK)
| eval LINK=if(OLD_LINK==LINK,null,LINK)
| selfjoin OLD_LINK
| fields LINK OLD_LINK DATE ID OLD_DATE OLD_ID OTHER&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Apr 2021 07:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548150#M155473</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-16T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548157#M155474</link>
      <description>&lt;P&gt;I have tried both yours with the raw file and it works perfectly.&lt;BR /&gt;when I run it with my data it only pulls out 35 lines but without the OLD_ID, no value on this field.&lt;BR /&gt;the extrapolated events must be 940 instead it shows only 35. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I don't know wy....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 09:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548157#M155474</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-16T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548158#M155475</link>
      <description>&lt;P&gt;Can you share some anonymised real data for the events you are expecting to get matched and aren't working so we can try and figure out why it isn't working for them?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 09:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548158#M155475</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-16T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548159#M155476</link>
      <description>&lt;P&gt;there is a way in which, after the first condition that I find all the LINKs that have populated the OLD_LINK and the DATA, I feed a new search the list of all the OLD_LINKs to extrapolate the ID and DATA.&lt;BR /&gt;In short, use a variable to say replace this variable with every value of the OLD_LINK field (as if it were a FOR loop)&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 09:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548159#M155476</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-16T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548165#M155478</link>
      <description>&lt;P&gt;maxmatches = 9999 does not work.&lt;BR /&gt;I found maxsearches but this also gives me an error&lt;BR /&gt;Error in 'map' command: Unable to find saved search 'maxmatches = 9999'.&lt;BR /&gt;Error in 'map' command: Unable to find saved search 'maxsearches = 9999'.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 09:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548165#M155478</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-16T09:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548244#M155506</link>
      <description>&lt;P&gt;Here's another wag at it, make sure you run the search over a long enough time period to pick up all the relevant events.&lt;/P&gt;&lt;P&gt;The Link="$LINK" is a way to pass the original link value into the subsearch. For more information on the map command see: &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.1.2101/SearchReference/Map" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.1.2101/SearchReference/Map&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=summary  &amp;lt;you need to insert any other necessary search terms here&amp;gt;  | table LINK, OLD_LINK, DATA, ID | dedup LINK | map [ search index=summary &amp;lt;you need to insert any other necessary search terms here&amp;gt; LINK="$OLD_LINK$" | rename DATE as OLD_DATE, ID AS OLD_ID, LINK as OLD_LINK | eval DATE="$DATE$", ID="$ID$", LINK="$LINK$" ] maxsearches=9999 | table LINK OLD_LINK DATE ID OLD_DATE OLD_ID&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 15:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548244#M155506</guid>
      <dc:creator>ericjorgensenjr</dc:creator>
      <dc:date>2021-04-16T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548395#M155550</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;i'm trying your solution, but it doesn't return anything like table just events, which are the same number it returns to me without the map.&lt;BR /&gt;I think we are there as a search, the problem that I don't display the OLD_LINK and other OLd values that I need.&lt;BR /&gt;I'm trying to modify your instructions to see step by step what they do.&lt;BR /&gt;Thanks for the info where LINK - "$ OLD_LINK $" searches me on the LINK field with all the OLD_LINK values found in the first one.&lt;BR /&gt;If I understand correctly the steps are:&lt;BR /&gt;1) I do my research obtaining only the values and fields that interest me&lt;BR /&gt;2) on this list obtained, I execute the MAP where I say that LINK must be equal to every value you find on OLD_LINK&lt;BR /&gt;3) return me the values of the first search by adding the fields found in the second search.&lt;BR /&gt;CORRECT??&lt;BR /&gt;TKS&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 08:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548395#M155550</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-19T08:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to perform a search that has the result of another search as input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548754#M155676</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;the solutions are equally valid.&lt;BR /&gt;I mixed the two using the map and eval ifnotnull to get what I wanted.&lt;BR /&gt;My indications have not been very precise, so I believe that both are still satisfactory.&lt;BR /&gt;Thanks everyone for the help and the solution.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 10:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-perform-a-search-that-has-the-result-of-another-search-as/m-p/548754#M155676</guid>
      <dc:creator>antonio147</dc:creator>
      <dc:date>2021-04-21T10:06:08Z</dc:date>
    </item>
  </channel>
</rss>

