<?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: Using regex to drop specific events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82916#M21056</link>
    <description>&lt;P&gt;I tried this and it did not work.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2012 16:45:52 GMT</pubDate>
    <dc:creator>rdevine</dc:creator>
    <dc:date>2012-03-02T16:45:52Z</dc:date>
    <item>
      <title>Using regex to drop specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82913#M21053</link>
      <description>&lt;P&gt;i have an event that looks like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;03/01/2012 03:05:43 PM&lt;BR /&gt;
LogName=Security&lt;BR /&gt;
SourceName=Security&lt;BR /&gt;
EventCode=562&lt;BR /&gt;
EventType=8&lt;BR /&gt;
Type=Success Audit&lt;BR /&gt;
ComputerName=GLSSQLINT&lt;BR /&gt;
User=SYSTEM&lt;BR /&gt;
Sid=S-1-5-18&lt;BR /&gt;
SidType=1&lt;BR /&gt;
Category=3&lt;BR /&gt;
CategoryString=Object Access&lt;BR /&gt;
RecordNumber=250015&lt;BR /&gt;
Message=Handle Closed:&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Object Server:  Security

Handle ID:  940

Process ID: 1288

Image File Name:    C:\Program Files\ISS\Proventia Server\phService.exe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I want these messages to be dropped if both type=success audit AND CategoryString=Object Access, however when i create the regex to do this which i think is supposed to be&lt;BR /&gt;
&lt;CODE&gt;(?m)(?=.*Type=Success Audit)(?=.*CategoryString=Object Access)&lt;/CODE&gt;&lt;BR /&gt;
it doesn't seem to work.  What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:28:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82913#M21053</guid>
      <dc:creator>rdevine</dc:creator>
      <dc:date>2020-09-28T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to drop specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82914#M21054</link>
      <description>&lt;P&gt;I think that the following would do it. Not sure why you are using lookahead - it isn't needed here.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?m)Type=Success Audit.*CategoryString=Object Access
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Mar 2012 02:24:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82914#M21054</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-02T02:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to drop specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82915#M21055</link>
      <description>&lt;P&gt;ultimately this worked.&lt;/P&gt;

&lt;P&gt;(?ms)(?=Success\sAudit)(?=.*CategoryString=Object\sAccess)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 15:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82915#M21055</guid>
      <dc:creator>rdevine</dc:creator>
      <dc:date>2012-03-02T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to drop specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82916#M21056</link>
      <description>&lt;P&gt;I tried this and it did not work.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 16:45:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82916#M21056</guid>
      <dc:creator>rdevine</dc:creator>
      <dc:date>2012-03-02T16:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using regex to drop specific events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82917#M21057</link>
      <description>&lt;P&gt;Good catch. You definitely needed the (?ms) not just the (?m)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2012 22:56:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-regex-to-drop-specific-events/m-p/82917#M21057</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-03-02T22:56:25Z</dc:date>
    </item>
  </channel>
</rss>

