<?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: Splunk search lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746730#M241703</link>
    <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command will return null values when the target value is not present in the lookup table.&amp;nbsp; It's up to the query to test the returned values and take appropriate action when &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt; is returned.&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2025 12:34:44 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-05-22T12:34:44Z</dc:date>
    <item>
      <title>Splunk search lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746727#M241701</link>
      <description>&lt;P&gt;Have a data that returns ip field and values as below.&lt;/P&gt;&lt;P&gt;Ip = 0.0.0.11&lt;/P&gt;&lt;P&gt;Ip= 0.0.0.12&lt;/P&gt;&lt;P&gt;There is a lookup that contains field ipaddress with below values&lt;/P&gt;&lt;P&gt;0.0.0.11&lt;/P&gt;&lt;P&gt;0.0.0.13&lt;/P&gt;&lt;P&gt;If we see above 0.0.0.12 missed in the lookup,&lt;/P&gt;&lt;P&gt;I need a search to return 0.0.0.11(existed in both query result and lookup) and&amp;nbsp; 0.0.0.12 (entries which are not in lookup and update them as ip=0.0.0.0 in result)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 12:07:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746727#M241701</guid>
      <dc:creator>Harikiranjammul</dc:creator>
      <dc:date>2025-05-22T12:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746730#M241703</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command will return null values when the target value is not present in the lookup table.&amp;nbsp; It's up to the query to test the returned values and take appropriate action when &lt;FONT face="courier new,courier"&gt;null&lt;/FONT&gt; is returned.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 12:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746730#M241703</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-05-22T12:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746732#M241704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/258992"&gt;@Harikiranjammul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use the following SPL to achieve this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval ip="0.0.0.11,0.0.0.12"
| makemv ip delim=","
| mvexpand ip
``` End of sample data ```
| lookup your_lookup_file ipaddress as ip OUTPUTNEW ipaddress as found_ip
| eval ip=if(isnull(found_ip), "0.0.0.0", ip)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 13:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-search-lookup/m-p/746732#M241704</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-22T13:35:19Z</dc:date>
    </item>
  </channel>
</rss>

