<?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: Exclude regex results from a search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23480#M4206</link>
    <description>&lt;P&gt;Do this instead:&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" "CategoryString=Ouverture/fermeture" "Type=Failure" Type="Failure Audit" | regex host!="Q[0-9].*" | stats count by host&lt;/P&gt;

&lt;P&gt;Because regex is a command and the way you have it is: NOT regex AND host="![0-9]"&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2013 17:06:21 GMT</pubDate>
    <dc:creator>jtrucks</dc:creator>
    <dc:date>2013-08-02T17:06:21Z</dc:date>
    <item>
      <title>Exclude regex results from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23479#M4205</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to run the following search in order to list all the failed connection.&lt;/P&gt;

&lt;P&gt;In our parc we have computers that start with Q and immediately followed by a number. So I know the following search (without the NOT) shows only these computers.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="WinEventLog:Security" "CategoryString=Ouverture/fermeture" "Type=Failure" Type="Failure Audit" NOT regex host="Q[0-9].*" | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I add the NOT it doesn't display anything what am I doing wrong ?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Gaetan&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 16:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23479#M4205</guid>
      <dc:creator>gnoellbn</dc:creator>
      <dc:date>2013-08-02T16:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude regex results from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23480#M4206</link>
      <description>&lt;P&gt;Do this instead:&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" "CategoryString=Ouverture/fermeture" "Type=Failure" Type="Failure Audit" | regex host!="Q[0-9].*" | stats count by host&lt;/P&gt;

&lt;P&gt;Because regex is a command and the way you have it is: NOT regex AND host="![0-9]"&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 17:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23480#M4206</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-08-02T17:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude regex results from a search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23481#M4207</link>
      <description>&lt;P&gt;Works like a charm! Thanks a lot&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2013 18:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Exclude-regex-results-from-a-search/m-p/23481#M4207</guid>
      <dc:creator>gnoellbn</dc:creator>
      <dc:date>2013-08-02T18:04:06Z</dc:date>
    </item>
  </channel>
</rss>

