<?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 whitelist multiple IP addresses from datamodel search? (no need to use lookups)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468760#M131986</link>
    <description>&lt;P&gt;As far as I can tell, when using IN the CIDR address is seen as a single value and not as a CIDR value to expand. &lt;/P&gt;

&lt;P&gt;You would need to do it the old fashioned way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;All_Traffic.src_ip=10.16.72.20 OR All_Traffic.src_ip=10.128.124.0/22
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have several individual IPs, you could do those via IN:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE All_Traffic.src_ip IN (10.16.72.20, 10.16.73.20 ) OR  All_Traffic.src_ip=10.128.124.0/22 OR All_Traffic.src_ip=10.34.124.0/22 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Sep 2019 13:18:17 GMT</pubDate>
    <dc:creator>solarboyz1</dc:creator>
    <dc:date>2019-09-04T13:18:17Z</dc:date>
    <item>
      <title>How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468754#M131980</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;Can you please tell me how to exclude/whitelist multiple ip adresses from the &lt;STRONG&gt;datamodel&lt;/STRONG&gt; search&lt;/P&gt;

&lt;P&gt;here is the example:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;All_Traffic.dest_ip!=10.10.10.10 All_Traffic.dest_ip!=10.10.10.10 All_Traffic.dest_ip!=10.10.10.13&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I would like to have it more clear like: &lt;STRONG&gt;All_Traffic.dest_ip!=10.10.10.10, 10.10.10.10, 10.10.10.13&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Unfortunately it doesn't work. Which parameter needs to be used ??&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468754#M131980</guid>
      <dc:creator>dzejsonborn</dc:creator>
      <dc:date>2020-09-30T01:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468755#M131981</link>
      <description>&lt;P&gt;You could use the IN operator&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... Where NOT  All_Traffic.dest_ip IN (10.10.10.10, 10.10.10.10, 10.10.10.13)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Search#Multiple_field-value_comparisons_with_the_IN_operator"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Search#Multiple_field-value_comparisons_with_the_IN_operator&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 18:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468755#M131981</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-28T18:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468756#M131982</link>
      <description>&lt;P&gt;Thank you !!!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 19:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468756#M131982</guid>
      <dc:creator>dzejsonborn</dc:creator>
      <dc:date>2019-08-28T19:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468757#M131983</link>
      <description>&lt;P&gt;And later on if I would like to add &lt;STRONG&gt;All_Traffic.dest_port and  All_Traffic.transport!&lt;/STRONG&gt; &lt;BR /&gt;
Which parameter I should use ? &lt;/P&gt;

&lt;P&gt;I tried:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;WHERE NOT (All_Traffic.src_port IN (80, 443) OR NOT All_Traffic.dest_port IN (80, 443, 22, 5060)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but it does not work.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468757#M131983</guid>
      <dc:creator>dzejsonborn</dc:creator>
      <dc:date>2020-09-30T01:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468758#M131984</link>
      <description>&lt;P&gt;I don't know how the NOT outside the parens impacts the NOT inside, also not sure what Logic you are trying to implement. &lt;/P&gt;

&lt;P&gt;This will find any events that &lt;EM&gt;don't&lt;/EM&gt; have a src port of 80 or 443 or a dest of 80 443 22 5060. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE ( NOT All_Traffic.src_port IN (80, 443) AND NOT All_Traffic.dest_port IN (80, 443, 22, 5060) )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE NOT  ( All_Traffic.src_port IN (80, 443) OR All_Traffic.dest_port IN (80, 443, 22, 5060) )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468758#M131984</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-29T12:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468759#M131985</link>
      <description>&lt;P&gt;and how about IP ranges, for example:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;All_Traffic.src_ip IN (10.16.72.20, 10.128.124.0/22)&lt;/STRONG&gt;&lt;BR /&gt;
??&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:59:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468759#M131985</guid>
      <dc:creator>dzejsonborn</dc:creator>
      <dc:date>2020-09-30T01:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to whitelist multiple IP addresses from datamodel search? (no need to use lookups)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468760#M131986</link>
      <description>&lt;P&gt;As far as I can tell, when using IN the CIDR address is seen as a single value and not as a CIDR value to expand. &lt;/P&gt;

&lt;P&gt;You would need to do it the old fashioned way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;All_Traffic.src_ip=10.16.72.20 OR All_Traffic.src_ip=10.128.124.0/22
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have several individual IPs, you could do those via IN:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE All_Traffic.src_ip IN (10.16.72.20, 10.16.73.20 ) OR  All_Traffic.src_ip=10.128.124.0/22 OR All_Traffic.src_ip=10.34.124.0/22 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-whitelist-multiple-IP-addresses-from-datamodel-search-no/m-p/468760#M131986</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-09-04T13:18:17Z</dc:date>
    </item>
  </channel>
</rss>

