<?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: Splunk Query Exclude Question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292568#M162023</link>
    <description>&lt;P&gt;cidrmatch is what your looking for&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|  eval IP_Range = if(cidrmatch("192.168.1.5/25",ip), "local", "not local"))&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/ConditionalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/ConditionalFunctions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 01:06:15 GMT</pubDate>
    <dc:creator>skoelpin</dc:creator>
    <dc:date>2018-03-27T01:06:15Z</dc:date>
    <item>
      <title>Splunk Query Exclude Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292566#M162021</link>
      <description>&lt;P&gt;I am building a search query and trying to find the correct syntax to exclude specific combinations of source and destination IP addresses. For instance, in the search results I want to exclude results only between specific source and destination IPs. So if there is a lot of traffic happening between 192.168.1.5 and 192.168.1.20 I want to only exclude traffic between those two IPs, but still see traffic between 192.168.1.5 and other IPs. &lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 20:45:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292566#M162021</guid>
      <dc:creator>johann2017</dc:creator>
      <dc:date>2018-03-26T20:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Exclude Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292567#M162022</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;P&gt;Imagine you want to exclude some combinations you have in a lookup, you could use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearch | NOT ( [ | inputlookup ipscombination | return 1000 source ,dest | rex field="search" mode=sed "s/OR/AND/g" ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That would exclude the combinations of source/dest you have in a lookup.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 21:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292567#M162022</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-26T21:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Exclude Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292568#M162023</link>
      <description>&lt;P&gt;cidrmatch is what your looking for&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|  eval IP_Range = if(cidrmatch("192.168.1.5/25",ip), "local", "not local"))&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/ConditionalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/SearchReference/ConditionalFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 01:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292568#M162023</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-03-27T01:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Exclude Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292569#M162024</link>
      <description>&lt;P&gt;@johann2017 did this work for you?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 13:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292569#M162024</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-03-28T13:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Exclude Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292570#M162025</link>
      <description>&lt;P&gt;Hello Skoelpin. I don't think cidrmatch is what I need?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 21:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292570#M162025</guid>
      <dc:creator>johann2017</dc:creator>
      <dc:date>2018-04-05T21:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query Exclude Question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292571#M162026</link>
      <description>&lt;P&gt;Hey Tiago - where exactly in the query do I place the IP addresses? Does this work for only 2 IPs? Will it work for more than 2?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 21:12:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Query-Exclude-Question/m-p/292571#M162026</guid>
      <dc:creator>johann2017</dc:creator>
      <dc:date>2018-04-05T21:12:02Z</dc:date>
    </item>
  </channel>
</rss>

