<?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: regex forwarder in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-forwarder/m-p/34875#M7597</link>
    <description>&lt;P&gt;I don't think this is exactly what you want.  Some parts of the regex that you are showing seem unnecessary, and some are wrong...  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=\scomm=sendmail\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The other lines appear correct to me.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2011 00:11:15 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2011-12-15T00:11:15Z</dc:date>
    <item>
      <title>regex forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-forwarder/m-p/34874#M7596</link>
      <description>&lt;P&gt;I am new to regex - so......&lt;/P&gt;

&lt;P&gt;I want to filter out all events that contain the word sendmail&lt;/P&gt;

&lt;P&gt;My messages look like the following&lt;/P&gt;

&lt;P&gt;type=SYSCALL msg=audit(12/13/2011 05:41:01.898:11192536) : arch=x86_64 syscall=unlink success=yes exit=0 a0=2afe55cbc340 a1=2afe60dea7a6 a2=2afe55cbc352 a3=2afe55cbc340 items=2 ppid=5655 pid=5656 auid=unset uid=root gid=smmsp euid=root suid=root fsuid=root egid=smmsp sgid=smmsp fsgid=smmsp tty=(none) ses=4294967295 comm=sendmail exe=/usr/sbin/sendmail.sendmail key=(null)&lt;/P&gt;

&lt;P&gt;This is what I have in my transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[auditdNullsendmail]
# filter auditd, multiline, comm=sendmail
REGEX=(?ms)^comm=sendmail.+exe=/usr/sbin
DEST_KEY=queue
FORMAT=nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this look like it will work?&lt;/P&gt;

&lt;P&gt;When I search for sendmail in realtime - I am seeing events come in, but they are from the past (like Splunk is catching up???)  &lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2011 15:25:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-forwarder/m-p/34874#M7596</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2011-12-14T15:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: regex forwarder</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-forwarder/m-p/34875#M7597</link>
      <description>&lt;P&gt;I don't think this is exactly what you want.  Some parts of the regex that you are showing seem unnecessary, and some are wrong...  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX=\scomm=sendmail\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The other lines appear correct to me.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 00:11:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-forwarder/m-p/34875#M7597</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2011-12-15T00:11:15Z</dc:date>
    </item>
  </channel>
</rss>

