<?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: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176860#M50828</link>
    <description>&lt;P&gt;Hi Richgalloway! &lt;/P&gt;

&lt;P&gt;it worked really well!&lt;BR /&gt;
Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2014 18:23:43 GMT</pubDate>
    <dc:creator>dfigurello</dc:creator>
    <dc:date>2014-10-30T18:23:43Z</dc:date>
    <item>
      <title>How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176845#M50813</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;

&lt;P&gt;I need help to create a better regex in my transforms.conf. I am filtering checkpoint data in my Splunk. &lt;BR /&gt;
In this case, I don't want collect the following event&lt;BR /&gt;
sourcetype=opsec action=allowed src=172.20.1.1&lt;BR /&gt;
OR &lt;BR /&gt;
sourcetype=opsec action=allowed src=172.20.1.2 &lt;/P&gt;

&lt;P&gt;I created the props.conf and transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf:
[opsec]
TRANSFORMS-t1 = eliminate_opsec 

transforms.conf
[eliminate_opsec]
REGEX = (src\=172.20.1.1|src\=172.20.1.2)
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need add in the regex, the field action=allowed. &lt;BR /&gt;
How do I do add this function ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176845#M50813</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-29T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176846#M50814</link>
      <description>&lt;P&gt;Can you post some sample raw data?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176846#M50814</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-29T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176847#M50815</link>
      <description>&lt;P&gt;This matches the examples you gave.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = action=allowed\s+(src=172.20.1.1|src=172.20.1.2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176847#M50815</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-10-29T18:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176848#M50816</link>
      <description>&lt;P&gt;Sure. &lt;/P&gt;

&lt;P&gt;loc=17389746|time=29Oct2014 16:28:39|action=allowed|orig=172.20.1.1|i/f_dir=inbound|i/f_name=eth3|has_accounting=0|product=VPN-1 &amp;amp; FireWall-1|__policy_id_tag=product=VPN-1 &amp;amp; FireWall-1[db_tag={000000E0-003F-0046-93C9-1F533951F91E};mgmt=gerfw;date=1414530153;policy_name=example1]|inzone=Internal|outzone=External|service_id=http|src=172.20.1.1|s_port=58077|dst=173.xxx.yyy.57|service=80|proto=tcp|xlatesrc=172.20.1.xx|xlatesport=29365|xlatedport=0|NAT_rulenum=267|NAT_addtnl_rulenum=1|rule=781&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:02:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176848#M50816</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2020-09-28T18:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176849#M50817</link>
      <description>&lt;P&gt;Hi Richgalloway, &lt;/P&gt;

&lt;P&gt;I tried but not works. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;REGEX = action=allowed\s+(src=172.20.1.1|src=172.20.1.2&lt;/CODE&gt;)&lt;/P&gt;

&lt;P&gt;and then i tried this:&lt;/P&gt;

&lt;P&gt;REGEX = &lt;CODE&gt;action\=allowed\s+(src\=172.20.1.1|src\=172.20.1.2&lt;/CODE&gt;)&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176849#M50817</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-29T18:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176850#M50818</link>
      <description>&lt;P&gt;Did 2nd option work?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176850#M50818</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-29T19:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176851#M50819</link>
      <description>&lt;P&gt;Try this as well&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = action=allowed(.*)(src=172\.20\.\1\.1|src=172\.20\.1\.2)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:50:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176851#M50819</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-29T19:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176852#M50820</link>
      <description>&lt;P&gt;Hi Somesoni2, &lt;/P&gt;

&lt;P&gt;No. &lt;BR /&gt;
:(&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176852#M50820</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-29T19:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176853#M50821</link>
      <description>&lt;P&gt;Unfortunately no.&lt;/P&gt;

&lt;P&gt;When I remove action=allowed, my regex works well.&lt;BR /&gt;
Any idea?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 20:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176853#M50821</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-29T20:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176854#M50822</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (action=allowed(.*)(src=172\.20\.\1\.1|src=172\.20\.1\.2))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Oct 2014 20:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176854#M50822</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-10-29T20:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176855#M50823</link>
      <description>&lt;P&gt;Unfortunately no. &lt;/P&gt;

&lt;P&gt;Look above the picture:&lt;BR /&gt;
Cheers!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:34:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176855#M50823</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-29T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176856#M50824</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/117i638C524DF83B6FBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 22:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176856#M50824</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-29T22:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176857#M50825</link>
      <description>&lt;P&gt;What I see is an event that was indexed because it did not match the regex string in the eliminate_opsec stanza.  The match failed because the IP address was not one of the two in the regex.  If that is not the expected behavior then please restate the requirements.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176857#M50825</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-10-30T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176858#M50826</link>
      <description>&lt;P&gt;Hi richgalloway, &lt;/P&gt;

&lt;P&gt;It just example, because I can't show real address ip. &lt;BR /&gt;
I am changing the values (address ip) in transforms.conf, according with requirements. &lt;/P&gt;

&lt;P&gt;Tks,&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176858#M50826</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-30T12:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176859#M50827</link>
      <description>&lt;P&gt;I believe there is a stray backslash in the regex string.  Try this one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(action=allowed(.*)(src=172\.20\.1\.1|src=172\.20\.1\.2))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Oct 2014 13:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176859#M50827</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-10-30T13:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176860#M50828</link>
      <description>&lt;P&gt;Hi Richgalloway! &lt;/P&gt;

&lt;P&gt;it worked really well!&lt;BR /&gt;
Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176860#M50828</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-30T18:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two fields using regex in transforms.conf to filter out certain events from checkpoint data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176861#M50829</link>
      <description>&lt;P&gt;Thanks a lot too Somesoni2.&lt;BR /&gt;
:)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-two-fields-using-regex-in-transforms-conf-to-filter/m-p/176861#M50829</guid>
      <dc:creator>dfigurello</dc:creator>
      <dc:date>2014-10-30T18:24:43Z</dc:date>
    </item>
  </channel>
</rss>

