<?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 How to use &amp;quot;NOT&amp;quot; condition in regular expression? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143930#M40024</link>
    <description>&lt;P&gt;for example i have the string "update event from remote cache". i need to use NOT condition for this to capture ab events other than that.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jul 2015 04:29:30 GMT</pubDate>
    <dc:creator>Madhan45</dc:creator>
    <dc:date>2015-07-27T04:29:30Z</dc:date>
    <item>
      <title>How to use "NOT" condition in regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143930#M40024</link>
      <description>&lt;P&gt;for example i have the string "update event from remote cache". i need to use NOT condition for this to capture ab events other than that.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 04:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143930#M40024</guid>
      <dc:creator>Madhan45</dc:creator>
      <dc:date>2015-07-27T04:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "NOT" condition in regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143931#M40025</link>
      <description>&lt;P&gt;Maybe &lt;A href="http://stackoverflow.com/questions/977251/regular-expressions-and-negating-a-whole-character-group"&gt;this answer&lt;/A&gt; on Stack Overflow is of interest to you.&lt;/P&gt;

&lt;P&gt;But maybe you could just eval a field which flags events with your given string and filter based on that eval'd field, such as&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search | eval check=if(match(field, "update\sevent\sfrom\sremote\scache","nope","ok") | where check="ok"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: this assumes that your string in question is in a field named "field".&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 07:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143931#M40025</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-07-27T07:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "NOT" condition in regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143932#M40026</link>
      <description>&lt;P&gt;Does this not work (you &lt;EM&gt;MUST&lt;/EM&gt; use ALL-CAPS for &lt;CODE&gt;NOT&lt;/CODE&gt;)?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;NOT "event from remote cache"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jul 2015 14:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143932#M40026</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-27T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "NOT" condition in regular expression?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143933#M40027</link>
      <description>&lt;P&gt;You might want to look at rex Non-capturing which may do what you want with some rex trickery, but with out some samples its tough to tell.  &lt;A href="http://www.regular-expressions.info/refcapture.html"&gt;http://www.regular-expressions.info/refcapture.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2015 17:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-quot-NOT-quot-condition-in-regular-expression/m-p/143933#M40027</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-07-27T17:23:35Z</dc:date>
    </item>
  </channel>
</rss>

