<?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: Is it possible to do eval and lookups with makeresult? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/646806#M223869</link>
    <description>&lt;P&gt;As I have told you before, fields from the outer search are not available to the subsearch because the subsearch is executed first.&lt;/P&gt;&lt;P&gt;Having said that, since you are using a dashboard, you may be able to use a base search, and set a token in the done handler of the base search, which you can then use in the panel search&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 12:27:17 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-06-13T12:27:17Z</dc:date>
    <item>
      <title>Is it possible to do eval and lookups with makeresult?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/646783#M223862</link>
      <description>&lt;P&gt;Is it possible for me to do a main search and based on the results from main search I find the fileName and want to use it in the inputlookup for a sub-search. I'm using this on dashboard as well, so doing it by map is waiting for inputs in dashboard and never getting populated.&lt;BR /&gt;&lt;BR /&gt;Lookup with map:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=main Events
| stats count, Events
| eval fileName= &amp;lt;filename&amp;gt;
| eval lookup="| inputlookup ".fileName
| map search="| makeresults | map search="$lookup$&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;My Current search query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=main Events
| stats count, Events
| eval fileName= &amp;lt;filename&amp;gt;
[| inputlookup [| makeresults 
                  | eval search=fileName 
                  | table search]] | stats count as known by Events
| fillnull known values=0
&amp;lt;remaining search&amp;gt;​&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 11:17:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/646783#M223862</guid>
      <dc:creator>Thulasinathan_M</dc:creator>
      <dc:date>2023-06-13T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do eval and lookups with makeresult?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/646806#M223869</link>
      <description>&lt;P&gt;As I have told you before, fields from the outer search are not available to the subsearch because the subsearch is executed first.&lt;/P&gt;&lt;P&gt;Having said that, since you are using a dashboard, you may be able to use a base search, and set a token in the done handler of the base search, which you can then use in the panel search&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 12:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/646806#M223869</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-13T12:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do eval and lookups with makeresult?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/647459#M224090</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, Thanks. Used Tokens and it done the trick.&lt;BR /&gt;I try to push these results to a summary index, and will keep on doing this only if the event is not already present in summary index but I want to maintain the count of this events as well. It seems impossible to maintain unique event in summary index and keep on updating the count of events. Could you kindly suggest a solution for this please.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 07:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/647459#M224090</guid>
      <dc:creator>Thulasinathan_M</dc:creator>
      <dc:date>2023-06-19T07:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do eval and lookups with makeresult?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/647463#M224093</link>
      <description>&lt;P&gt;You should check out my talk on &lt;A href="https://www.youtube.com/watch?v=nYSikXNkXdE" target="_self"&gt;Summary index idempotency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 07:40:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-it-possible-to-do-eval-and-lookups-with-makeresult/m-p/647463#M224093</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-06-19T07:40:51Z</dc:date>
    </item>
  </channel>
</rss>

