<?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: Search a Datamodel using field values from a lookup csv file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-a-Datamodel-using-field-values-from-a-lookup-csv-file/m-p/540028#M152757</link>
    <description>&lt;P&gt;If current DM doesn't bring all src_ip related information from subsearch then you can add all src_ip's using an additional inputlookup and append it to DM results&lt;/P&gt;&lt;P&gt;| tstats count from datamodel=DM where&lt;BR /&gt;[| inputlookup test.csv&lt;BR /&gt;| rename src_ip to DM.src_ip&lt;BR /&gt;| fields DM.src_ip]&lt;BR /&gt;by DM.src_ip&lt;BR /&gt;| rename DM.src_ip AS src_ip&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;| inputlookup test.csv append=t&lt;BR /&gt;| stats values(*) as * by src_ip&lt;/FONT&gt;&lt;BR /&gt;| iplocation src_ip&lt;BR /&gt;| fillnull value="NULL"&lt;BR /&gt;| table src_ip, Country&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2021 23:13:36 GMT</pubDate>
    <dc:creator>PradReddy</dc:creator>
    <dc:date>2021-02-15T23:13:36Z</dc:date>
    <item>
      <title>Search a Datamodel using field values from a lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-Datamodel-using-field-values-from-a-lookup-csv-file/m-p/540019#M152754</link>
      <description>&lt;P&gt;I have a lookup: test.csv that has a list of 10 IP's (src_ip). I want to be able to search a datamodel that&amp;nbsp; looks for traffic from those 10 IPs in the CSV from the lookup and displays info on the IPs even if it doesn't match. Currently I have tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;| tstats count from datamodel=DM where&lt;BR /&gt;[| inputlookup test.csv | rename src_ip to DM.src_ip&lt;BR /&gt;| fields DM.src_ip]&lt;BR /&gt;by DM.src_ip&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rename DM.src_ip AS src_ip&lt;/P&gt;&lt;P&gt;| iplocation src_ip&lt;/P&gt;&lt;P&gt;| fillnull value="NULL"&lt;/P&gt;&lt;P&gt;| table src_ip, Country&lt;/P&gt;&lt;P&gt;The issue is that if the IP from the lookup isnt found in the DataModel, it doesn't include that entire line, so instead of 10 IPs with 10 countries, I get maybe 5-6 IPs and their respective countries. I want the DM to always include all 10 IPs from the lookup in the table. I understand that I can just use the lookup to get countries, but I specifically want to have the datamodel available for other data while always including all 10 IPs in the table.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:59:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-Datamodel-using-field-values-from-a-lookup-csv-file/m-p/540019#M152754</guid>
      <dc:creator>mztopp</dc:creator>
      <dc:date>2021-02-15T20:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search a Datamodel using field values from a lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-a-Datamodel-using-field-values-from-a-lookup-csv-file/m-p/540028#M152757</link>
      <description>&lt;P&gt;If current DM doesn't bring all src_ip related information from subsearch then you can add all src_ip's using an additional inputlookup and append it to DM results&lt;/P&gt;&lt;P&gt;| tstats count from datamodel=DM where&lt;BR /&gt;[| inputlookup test.csv&lt;BR /&gt;| rename src_ip to DM.src_ip&lt;BR /&gt;| fields DM.src_ip]&lt;BR /&gt;by DM.src_ip&lt;BR /&gt;| rename DM.src_ip AS src_ip&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;| inputlookup test.csv append=t&lt;BR /&gt;| stats values(*) as * by src_ip&lt;/FONT&gt;&lt;BR /&gt;| iplocation src_ip&lt;BR /&gt;| fillnull value="NULL"&lt;BR /&gt;| table src_ip, Country&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 23:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-a-Datamodel-using-field-values-from-a-lookup-csv-file/m-p/540028#M152757</guid>
      <dc:creator>PradReddy</dc:creator>
      <dc:date>2021-02-15T23:13:36Z</dc:date>
    </item>
  </channel>
</rss>

