<?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: Regular expression in Datamodel attribute in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Datamodel-attribute/m-p/149833#M41936</link>
    <description>&lt;P&gt;Wow.&lt;/P&gt;

&lt;P&gt;I've removed the quotes and it started working.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Dec 2014 18:43:22 GMT</pubDate>
    <dc:creator>snemiro_514</dc:creator>
    <dc:date>2014-12-11T18:43:22Z</dc:date>
    <item>
      <title>Regular expression in Datamodel attribute</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Datamodel-attribute/m-p/149832#M41935</link>
      <description>&lt;P&gt;Hi splunkers,&lt;/P&gt;

&lt;P&gt;I need to create a new attribute in one datamodel. I think I don't understand the syntax or what's going on.&lt;/P&gt;

&lt;P&gt;The field tranID contains two letters and a number (FR82734, WR293482) . I need a new field auxTranID containing only the number portion...so this is what I did:&lt;/P&gt;

&lt;P&gt;In the search box:&lt;/P&gt;

&lt;P&gt;| datamodel DATATEST TRAN search | rex field="TRAN.tranID" (? New FIELD NAME BETWEEN ANGLE BRACKETS \d+)"&lt;/P&gt;

&lt;P&gt;Then I have a new field auxTranID with the proper numeric value.&lt;/P&gt;

&lt;P&gt;If I go to the add attribute feature in the datamodel definition and I add a rex expression selecting the field tranID and writting "(? New FIELD NAME BETWEEN ANGLE BRACKETS \d+)" in the regex field, I don't see the new field in the object.&lt;/P&gt;

&lt;P&gt;What am I doing wrong?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 18:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Datamodel-attribute/m-p/149832#M41935</guid>
      <dc:creator>snemiro_514</dc:creator>
      <dc:date>2014-12-11T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expression in Datamodel attribute</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Datamodel-attribute/m-p/149833#M41936</link>
      <description>&lt;P&gt;Wow.&lt;/P&gt;

&lt;P&gt;I've removed the quotes and it started working.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 18:43:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regular-expression-in-Datamodel-attribute/m-p/149833#M41936</guid>
      <dc:creator>snemiro_514</dc:creator>
      <dc:date>2014-12-11T18:43:22Z</dc:date>
    </item>
  </channel>
</rss>

