<?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 search IP with wildcard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401066#M116141</link>
    <description>&lt;P&gt;I think that's what @mveca wants, "not condition with wildcard".&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 08:53:24 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2019-06-04T08:53:24Z</dc:date>
    <item>
      <title>How to search IP with wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401062#M116137</link>
      <description>&lt;P&gt;I want to exclude both primary and secondary IP addresses from a search.&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src_ip!=192.50.244.10 AND src_ip!=192.50.245.10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can I combine the two by just using a wildcard in just one octet?&lt;/P&gt;

&lt;P&gt;For example, something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src_ip!=192.50.24*.10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 May 2019 15:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401062#M116137</guid>
      <dc:creator>mveca</dc:creator>
      <dc:date>2019-05-31T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to search IP with wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401063#M116138</link>
      <description>&lt;P&gt;Hi @mveca,&lt;/P&gt;

&lt;P&gt;You could use a wildcard but that will match more than what you require since that also includes : 192.50.241.10,192.50.242.10 and others that you might want to keep.&lt;/P&gt;

&lt;P&gt;If you really want to use a regex you could try something like what is shown here : &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/97697/exclude-regex-results-from-a-search.html"&gt;https://answers.splunk.com/answers/97697/exclude-regex-results-from-a-search.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your search would look like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yourbasesearch | regex src_ip!="192.50.24[4,5].10"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if that helps.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 16:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401063#M116138</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-31T16:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to search IP with wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401064#M116139</link>
      <description>&lt;P&gt;@mveca - Yes you can do  &lt;CODE&gt;src_ip!=192.50.24*.10&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 06:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401064#M116139</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-04T06:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to search IP with wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401065#M116140</link>
      <description>&lt;P&gt;this excludes 192.50.240.10,192.50.241.10....192.50.249.10 not just the primary IPs.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 07:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401065#M116140</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-04T07:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to search IP with wildcard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401066#M116141</link>
      <description>&lt;P&gt;I think that's what @mveca wants, "not condition with wildcard".&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 08:53:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-IP-with-wildcard/m-p/401066#M116141</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2019-06-04T08:53:24Z</dc:date>
    </item>
  </channel>
</rss>

