<?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 REGEX not working in transforms.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134392#M36734</link>
    <description>&lt;P&gt;Here is my event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Contact=" (Contact){ Id -- '123' Email -- 'johnny@gmail.com' Name -- 'Johnny blah' Phone -- '3333337856' }”
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ST_CONTACT_INFO]
BREAK_ONLY_BEFORE = Contact=
MAX_TIMESTAMP_LOOKAHEAD = 150
REPORT-contact1 = report-contactdetails
NO_BINARY_CHECK = 1
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[report-contactdetails]
SOURCE_KEY = Contact
REGEX = [\s]([\w]+)[\s]--[\s]\'([^\']+)
FORMAT = $1::$2
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The fields like Id , Email, Name and Phone numbers are not auto extracted. The REGEX works fine and tested on regex101.com , check at &lt;A href="http://regex101.com/r/tP2wB5/2"&gt;http://regex101.com/r/tP2wB5/2&lt;/A&gt; &lt;BR /&gt;
When I put the configuration in props.conf and transforms.conf, why it is not working? I have ensured that I gave the correct SOURCETYPE for the input.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2014 23:27:31 GMT</pubDate>
    <dc:creator>jhallur_splunk</dc:creator>
    <dc:date>2014-07-08T23:27:31Z</dc:date>
    <item>
      <title>REGEX not working in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134392#M36734</link>
      <description>&lt;P&gt;Here is my event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Contact=" (Contact){ Id -- '123' Email -- 'johnny@gmail.com' Name -- 'Johnny blah' Phone -- '3333337856' }”
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[ST_CONTACT_INFO]
BREAK_ONLY_BEFORE = Contact=
MAX_TIMESTAMP_LOOKAHEAD = 150
REPORT-contact1 = report-contactdetails
NO_BINARY_CHECK = 1
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[report-contactdetails]
SOURCE_KEY = Contact
REGEX = [\s]([\w]+)[\s]--[\s]\'([^\']+)
FORMAT = $1::$2
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The fields like Id , Email, Name and Phone numbers are not auto extracted. The REGEX works fine and tested on regex101.com , check at &lt;A href="http://regex101.com/r/tP2wB5/2"&gt;http://regex101.com/r/tP2wB5/2&lt;/A&gt; &lt;BR /&gt;
When I put the configuration in props.conf and transforms.conf, why it is not working? I have ensured that I gave the correct SOURCETYPE for the input.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:27:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134392#M36734</guid>
      <dc:creator>jhallur_splunk</dc:creator>
      <dc:date>2014-07-08T23:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX not working in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134393#M36735</link>
      <description>&lt;P&gt;To narrow possible causes down please comment out the &lt;CODE&gt;SOURCE_KEY&lt;/CODE&gt; - your extraction should still match on the &lt;CODE&gt;_raw&lt;/CODE&gt; text as shown by your URL.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134393#M36735</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-08T23:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX not working in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134394#M36736</link>
      <description>&lt;P&gt;Yes, it worked, but this overwrites the originally auto extracted field "Contact" with value single quote only. i.e Contact="&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:51:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134394#M36736</guid>
      <dc:creator>jhallur_splunk</dc:creator>
      <dc:date>2014-07-08T23:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX not working in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134395#M36737</link>
      <description>&lt;P&gt;So it seems the field &lt;CODE&gt;Contact&lt;/CODE&gt; isn't available at the time of that &lt;CODE&gt;REPORT&lt;/CODE&gt; application.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2014 23:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134395#M36737</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-08T23:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX not working in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134396#M36738</link>
      <description>&lt;P&gt;Please put your answer in the answer text box below so that I can accept it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 00:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134396#M36738</guid>
      <dc:creator>jhallur_splunk</dc:creator>
      <dc:date>2014-07-09T00:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: REGEX not working in transforms.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134397#M36739</link>
      <description>&lt;P&gt;Yup, done.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 00:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/REGEX-not-working-in-transforms-conf/m-p/134397#M36739</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-09T00:31:59Z</dc:date>
    </item>
  </channel>
</rss>

