<?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: How to ignore ip_address from events that exist in a lookup table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185548#M53481</link>
    <description>&lt;P&gt;I'll try to explain, sorry about it but my splunk-foo is just not great.&lt;/P&gt;

&lt;P&gt;the query i added - the results in my search are only the root servers that i have listed in the lookup table - which are the ones i don't want to see in my results.&lt;/P&gt;

&lt;P&gt;the csv file has 3 columns&lt;BR /&gt;
dns_name                 dest_ip                 exists&lt;BR /&gt;
a.root-servers.net    198.41.0.4            y&lt;BR /&gt;
b.root-servers.net    192.228.79.201   y&lt;/P&gt;

&lt;P&gt;Unfortunately I am not able to provide samples directly from Splunk.  But, the only results I am receiving from the query are the root servers listed in the lookup table.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 20:26:29 GMT</pubDate>
    <dc:creator>wtaylor149</dc:creator>
    <dc:date>2020-09-28T20:26:29Z</dc:date>
    <item>
      <title>How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185544#M53477</link>
      <description>&lt;P&gt;Splunk Newbie here....&lt;/P&gt;

&lt;P&gt;I'm looking to create a search looking for internal hosts reaching out to external DNS servers.  I want to exclude our local internal dns servers as well as the root_dns servers.  I have created a lookup table (csv file) that has all the root dns servers.  How do I tell my search string to not display the root servers?&lt;/P&gt;

&lt;P&gt;Example search:&lt;BR /&gt;
index=asa dest_port=53 action=blocked dest_ip!=10* AND dest_ip!-172*  | use lookup table to remove root_dns_srvrs | stats count by src_ip dest_ip&lt;/P&gt;

&lt;P&gt;Thanks for the help.  BTW, I don't have access to the cli so if I have to update .conf files, there will be more questions.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185544#M53477</guid>
      <dc:creator>wtaylor149</dc:creator>
      <dc:date>2020-09-28T20:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185545#M53478</link>
      <description>&lt;P&gt;could you please try...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your Search&amp;gt; | join type=left dest_ip  [ | inputlookup your_lookup.csv |  fields  dest_ip  | dedup  dest_ip | eval DummyColumn="Table2"| fields dest_ip, DummyColumn]  | search NOT DummyColumn=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Try doing a "LEFT" join with left column being "your_search" , have atleast two columns from "your_lookup.csv"  and on final output compare whichever is NOT null. (The logic is, lookup left -hand data and anything which is not matched on right-hand side will output null values)&lt;/P&gt;

&lt;P&gt;OR&lt;BR /&gt;
another option is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search NOT [|inputlookup dns.csv| table destIp | rename destIp as dest_ip]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just filterint out any specific data&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185545#M53478</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-28T20:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185546#M53479</link>
      <description>&lt;P&gt;Thanks koshyk but it's not working as expected.   Seems I am only pulling the root srvs from the lookup table.  Below is the search syntax:&lt;/P&gt;

&lt;P&gt;index=asa dest_port=53 action=blocked dest_ip!=10* AND dest_ip!=172* AND | join type=left dest_ip [ | inputlookup root_dns_srvrs.csv | fields dest_ip | dedup dest_ip | eval dummycolumn="dns_name" | fields dest_ip dummycolumn ] | search NOT dummycolumn&lt;/P&gt;

&lt;P&gt;my csv file has 3 colums:&lt;BR /&gt;
dns_name&lt;BR /&gt;
dest_ip&lt;BR /&gt;
exists&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:26:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185546#M53479</guid>
      <dc:creator>wtaylor149</dc:creator>
      <dc:date>2020-09-28T20:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185547#M53480</link>
      <description>&lt;P&gt;hmm... not sure I understand when you "only pulling root srvs from lookup".  Could you please put few sample events and sample csv file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:30:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185547#M53480</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2015-07-01T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185548#M53481</link>
      <description>&lt;P&gt;I'll try to explain, sorry about it but my splunk-foo is just not great.&lt;/P&gt;

&lt;P&gt;the query i added - the results in my search are only the root servers that i have listed in the lookup table - which are the ones i don't want to see in my results.&lt;/P&gt;

&lt;P&gt;the csv file has 3 columns&lt;BR /&gt;
dns_name                 dest_ip                 exists&lt;BR /&gt;
a.root-servers.net    198.41.0.4            y&lt;BR /&gt;
b.root-servers.net    192.228.79.201   y&lt;/P&gt;

&lt;P&gt;Unfortunately I am not able to provide samples directly from Splunk.  But, the only results I am receiving from the query are the root servers listed in the lookup table.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185548#M53481</guid>
      <dc:creator>wtaylor149</dc:creator>
      <dc:date>2020-09-28T20:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185549#M53482</link>
      <description>&lt;P&gt;I've simulated a sample scenario by indexing few random IPs and putting some of the sample as "root_dns_srvrs.csv" and it works correctly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex | table ips |head 10| rename ips as dest_ip | join type=left [ |inputlookup root_dns_srvrs.csv|  fields  dest_ip| dedup  dest_ip | eval DummyColumn="Table2"]| search NOT DummyColumn=*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gave me IP's that are present in "left -hand" list , but NOT present in the  dns.csv&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185549#M53482</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2020-09-28T20:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185550#M53483</link>
      <description>&lt;P&gt;Thank you very much koshyk for your help.  This did the trick for the most part.  I have this column in my Statistics called DummyColumn that is null, but all the other results are spot on.  Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 17:29:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185550#M53483</guid>
      <dc:creator>wtaylor149</dc:creator>
      <dc:date>2015-07-01T17:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185551#M53484</link>
      <description>&lt;P&gt;Try simply using the lookup table as part of the search string filtering using a NOT statement, instead of the join. &lt;/P&gt;

&lt;P&gt;index=asa dest_port=53 action=blocked dest_ip!=10* AND dest_ip!-172*  NOT[ inputlookup your_lookup.csv | fields dest_ip]&lt;BR /&gt;
| stats count by src_ip dest_ip&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185551#M53484</guid>
      <dc:creator>kearaspoor</dc:creator>
      <dc:date>2020-09-28T20:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185552#M53485</link>
      <description>&lt;P&gt;This is the best way to do it in my opinion. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2015 23:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185552#M53485</guid>
      <dc:creator>jordanperks</dc:creator>
      <dc:date>2015-07-01T23:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185553#M53486</link>
      <description>&lt;P&gt;I tried it this way but it did not work.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2015 00:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185553#M53486</guid>
      <dc:creator>wtaylor149</dc:creator>
      <dc:date>2015-07-02T00:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185554#M53487</link>
      <description>&lt;P&gt;Unless your CSV file has more than 10500 lines, this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=asa dest_port=53 action=blocked dest_ip!=10* AND dest_ip!-172* NOT [|inputlookup your_lookup.csv | fields dest_ip] | stats count by src_ip dest_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2015 14:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185554#M53487</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-07T14:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185555#M53488</link>
      <description>&lt;P&gt;Sorry but this answer does not exclude the IP's that are in the lookup table.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 19:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185555#M53488</guid>
      <dc:creator>wtaylor149</dc:creator>
      <dc:date>2015-07-07T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185556#M53489</link>
      <description>&lt;P&gt;It most certainly should; did you run it?  When you do, click the &lt;CODE&gt;Job Inspector&lt;/CODE&gt; and check out the &lt;CODE&gt;Normalized Search&lt;/CODE&gt;.  Does it look correct?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 19:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185556#M53489</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-07T19:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to ignore ip_address from events that exist in a lookup table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185557#M53490</link>
      <description>&lt;P&gt;Works fine to me. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 16:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-ignore-ip-address-from-events-that-exist-in-a-lookup/m-p/185557#M53490</guid>
      <dc:creator>hanamesh</dc:creator>
      <dc:date>2019-07-02T16:42:10Z</dc:date>
    </item>
  </channel>
</rss>

