<?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 How to modify my  search to data model search  by adding  a lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-data-model-search-by-adding-a-lookup/m-p/639677#M221669</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My task involves creating a search in datamodel i.e network_traffic, below is the base search how we could convert it to data model search&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| tstats summariesonly=t&lt;BR /&gt;values(All_Traffic.src_ip) as src_ip,&lt;BR /&gt;dc(All_Traffic.dest_port) as num_dest_port,&lt;BR /&gt;values(All_Traffic.dest_port) as dest_port&lt;BR /&gt;from datamodel=Network_Traffic by All_Traffic.dest_ip&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;| where num_dest_port &amp;gt; 100&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;| search NOT [| inputlookup&amp;nbsp; addresses.csv | search (comments =*scanner*) | fields IP AS ALL_Traffic.src_ip | format ]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;colored in red is not working as expected !!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks..&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 19:52:13 GMT</pubDate>
    <dc:creator>balu1211</dc:creator>
    <dc:date>2023-04-12T19:52:13Z</dc:date>
    <item>
      <title>How to modify my  search to data model search  by adding  a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-data-model-search-by-adding-a-lookup/m-p/639677#M221669</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My task involves creating a search in datamodel i.e network_traffic, below is the base search how we could convert it to data model search&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| tstats summariesonly=t&lt;BR /&gt;values(All_Traffic.src_ip) as src_ip,&lt;BR /&gt;dc(All_Traffic.dest_port) as num_dest_port,&lt;BR /&gt;values(All_Traffic.dest_port) as dest_port&lt;BR /&gt;from datamodel=Network_Traffic by All_Traffic.dest_ip&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;| where num_dest_port &amp;gt; 100&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp;| search NOT [| inputlookup&amp;nbsp; addresses.csv | search (comments =*scanner*) | fields IP AS ALL_Traffic.src_ip | format ]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;colored in red is not working as expected !!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 19:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-data-model-search-by-adding-a-lookup/m-p/639677#M221669</guid>
      <dc:creator>balu1211</dc:creator>
      <dc:date>2023-04-12T19:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify my  search to data model search  by adding  a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-data-model-search-by-adding-a-lookup/m-p/639682#M221670</link>
      <description>&lt;P&gt;| tstats ,values(All_Traffic.dest_port) AS dest_port values(All_Traffic.dest_ip) AS dest_ip dc(All_Traffic.dest_ip) AS num_dest_ip dc(All_Traffic.dest_port) AS num_dest_port&lt;BR /&gt;FROM datamodel=Network_Traffic&lt;BR /&gt;WHERE index="firewall" AND sourcetype="traffic" AND NOT [| inputlookup addresses.csv | search (comments =*scanner*) | table IP | rename IP AS ALL_Traffic.src_ip | format ]&lt;BR /&gt;BY All_Traffic.src_ip&lt;BR /&gt;| rename All_Traffic.* AS *&lt;BR /&gt;| where num_dest_port &amp;gt; 100&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 19:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-data-model-search-by-adding-a-lookup/m-p/639682#M221670</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-12T19:29:45Z</dc:date>
    </item>
  </channel>
</rss>

