<?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 help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65942#M16363</link>
    <description>&lt;P&gt;I did something similar for someone else on here today, and for you I think something like this would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; props.conf

 [yoursourcetype]
 TRANSFORMS-null = setnull

 transforms.conf

 [setnull]
 REGEX = dstip=123.123.123.123,dstport=514,.+,rule_name="this is my rule"
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Feb 2012 23:28:21 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2012-02-06T23:28:21Z</dc:date>
    <item>
      <title>regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65940#M16361</link>
      <description>&lt;P&gt;I need to filter out some events on the heavy forwarder.  I know how to do this but I need some help with the regex.&lt;/P&gt;

&lt;P&gt;If dstip=123.123.123.123 and dstport=514 and rule_name not ="this is my rule"&lt;/P&gt;

&lt;P&gt;drop the events.&lt;/P&gt;

&lt;P&gt;These are the events I want to see.......&lt;/P&gt;

&lt;P&gt;Jan 31 04:09:39 gwz auditd: date="2012-01-31 09:09:39 +0000",fac=f_kernel_ipfilter,area=z_general_area,type=t_nettraffic,pri=p_major,hostname=abc.cbs.com,event="session end",app_risk=low,app_categories=infrastructure,netsessid=54c044f265c90,srcip=123.15.3.19,srcport=41868,srczone=internal,protocol=17,dstip=123.123.123.123,dstport=514,dstzone=dmz,bytes_written_to_client=0,bytes_written_to_server=136491133,rule_name="this is my rule",cache_hit=0,start_time="2012-01-30 09:02:08 +0000",application=Syslog&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:23:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65940#M16361</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65941#M16362</link>
      <description>&lt;P&gt;Well, what does the event you're trying to filter look like? The example you provided seems to refer just to field names, not to actual event text.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2012 20:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65941#M16362</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-02-06T20:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65942#M16363</link>
      <description>&lt;P&gt;I did something similar for someone else on here today, and for you I think something like this would work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; props.conf

 [yoursourcetype]
 TRANSFORMS-null = setnull

 transforms.conf

 [setnull]
 REGEX = dstip=123.123.123.123,dstport=514,.+,rule_name="this is my rule"
 DEST_KEY = queue
 FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Feb 2012 23:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/65942#M16363</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-02-06T23:28:21Z</dc:date>
    </item>
  </channel>
</rss>

