<?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: Using multiple lookups in a search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746729#M241702</link>
    <description>&lt;P&gt;The fields names are different between the two lookup tables.&amp;nbsp; Try the modified command.&lt;/P&gt;</description>
    <pubDate>Thu, 22 May 2025 12:27:18 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2025-05-22T12:27:18Z</dc:date>
    <item>
      <title>Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746675#M241689</link>
      <description>&lt;P&gt;hello So i want to make a search .&lt;BR /&gt;i am using&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=endpoint_defender source="AdvancedHunting-DeviceInfo"
| rex field=DeviceName "(?&amp;lt;DeviceName&amp;gt;\w{3}-\w{1,})."
| eval DeviceName=upper(DeviceName)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;this gives me devicenames.&lt;BR /&gt;&lt;BR /&gt;now&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup snow_os.csv DeviceName output OS BuildNumber Version&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;from this lookup i am comparing devicenames and as ouput i am getting OS BuildNumber Version.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SN1_0-1747837933541.png" style="width: 747px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39076i3D0C1BF3AC6298EE/image-dimensions/747x183?v=v2" width="747" height="183" role="button" title="SN1_0-1747837933541.png" alt="SN1_0-1747837933541.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;and from these fields i want to compare them to this lookup to get whether this Operating System is outdated or not.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SN1_1-1747838084737.png" style="width: 781px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39077i1F75FB946EAB7B7F/image-dimensions/781x281?v=v2" width="781" height="281" role="button" title="SN1_1-1747838084737.png" alt="SN1_1-1747838084737.png" /&gt;&lt;/span&gt;&lt;BR /&gt;how can i do this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 14:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746675#M241689</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-05-21T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746676#M241690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/274807"&gt;@SN1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=endpoint_defender source="AdvancedHunting-DeviceInfo"
| rex field=DeviceName "(?&amp;lt;DeviceName&amp;gt;\w{3}-\w{1,})."
| eval DeviceName=upper(DeviceName)
| lookup snow_os.csv DeviceName output OS BuildNumber Version
| lookup os_version_status.csv OS BuildNumber Version OUTPUT Outdated
| table DeviceName OS BuildNumber Version Outdated&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>Wed, 21 May 2025 15:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746676#M241690</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-21T15:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746677#M241691</link>
      <description>&lt;P&gt;Add another &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup OS_Outdated.csv OperatingSystems as OS BuildNumber Version OUTPUT Outdated&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 12:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746677#M241691</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-05-22T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746703#M241698</link>
      <description>&lt;P&gt;i am doing this but outdated is showing nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 05:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746703#M241698</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-05-22T05:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746704#M241699</link>
      <description>&lt;P&gt;index=endpoint_defender source="AdvancedHunting-DeviceInfo"&lt;BR /&gt;| rex field=DeviceName "(?&amp;lt;DeviceName&amp;gt;\w{3}-\w{1,})."&lt;BR /&gt;| eval DeviceName=upper(DeviceName)&lt;BR /&gt;| lookup snow_os.csv DeviceName output OS BuildNumber Version&lt;BR /&gt;| lookup OS_Outdated.csv OperatingSystems as OS BuildNumber Version OUTPUT Outdated&lt;BR /&gt;| fillnull value=false outdated&lt;BR /&gt;| table DeviceName OS BuildNumber Version Outdated&lt;BR /&gt;&lt;BR /&gt;this is i am using but the problem is this line&lt;BR /&gt;&lt;BR /&gt;| lookup OS_Outdated.csv OperatingSystems as OS BuildNumber Version OUTPUT Outdated&lt;BR /&gt;&lt;BR /&gt;is not generating any results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 05:10:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746704#M241699</guid>
      <dc:creator>SN1</dc:creator>
      <dc:date>2025-05-22T05:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746708#M241700</link>
      <description>&lt;P&gt;Please can you confirm the field names in your OS lookup?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 07:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746708#M241700</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-05-22T07:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746729#M241702</link>
      <description>&lt;P&gt;The fields names are different between the two lookup tables.&amp;nbsp; Try the modified command.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 12:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746729#M241702</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-05-22T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using multiple lookups in a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746814#M241716</link>
      <description>&lt;P&gt;The OS in your first result has OS has "Microsoft Windows 11 Enterprise", whereas your OperatingSystems field in your OS_Outdated.csv lookup does not appear to have "Microsoft" in the name, so naturally it will not match.&lt;/P&gt;&lt;P&gt;You will either have to make your OperatingSystems field a wildcarded lookup or massage your data so the two fields contain similar data.&lt;/P&gt;&lt;P&gt;You also have a small issue with your use of fillnull - you specify a field name "outdated" which is lower case, whereas your field from the lookup is Outdated (capital O)&lt;/P&gt;&lt;P&gt;You can try this search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=endpoint_defender source="AdvancedHunting-DeviceInfo"
| rex field=DeviceName "(?&amp;lt;DeviceName&amp;gt;\w{3}-\w{1,})."
| eval DeviceName=upper(DeviceName)
| lookup snow_os.csv DeviceName output OS BuildNumber Version
``` Remove the word Microsoft and any following spaces ```
| eval OperatinsSystems=replace(OS, "Microsoft\s*", "")
``` Now use this modified field as the lookup field ```
| lookup OS_Outdated.csv OperatingSystems BuildNumber Version OUTPUT Outdated
| fillnull value=false Outdated
| table DeviceName OS BuildNumber Version Outdated&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 05:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-multiple-lookups-in-a-search/m-p/746814#M241716</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-05-23T05:09:47Z</dc:date>
    </item>
  </channel>
</rss>

