<?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 Manual Edit of reg expressions in Field Extractions page in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144379#M40166</link>
    <description>&lt;P&gt;I have been working with extracting userIDs using RegExs and have run into some trouble.  The following returns the correct results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "\,[abc]\w\w\w\w\w\w(?&amp;lt;userID&amp;gt;)" | stats count(userID)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This extracts user IDs from a csv file (that is our sourcetype)&lt;/P&gt;

&lt;P&gt;When I go to the Fields Extraction page and edit the extraction manually, I don't get any results (actually, it returns none found)&lt;/P&gt;

&lt;P&gt;I have tried editing the inline regex to read \,[abc]\w\w\w\w\w\w(?&lt;USERID&gt;) but it is not returning anything.  I can't seem to find any documentation about the nuances of this inline regex.  Any tips would be great!  &lt;/USERID&gt;&lt;/P&gt;

&lt;P&gt;Thanks, Mike&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2014 17:43:25 GMT</pubDate>
    <dc:creator>lehrfeld</dc:creator>
    <dc:date>2014-02-10T17:43:25Z</dc:date>
    <item>
      <title>Manual Edit of reg expressions in Field Extractions page</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144379#M40166</link>
      <description>&lt;P&gt;I have been working with extracting userIDs using RegExs and have run into some trouble.  The following returns the correct results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=_raw "\,[abc]\w\w\w\w\w\w(?&amp;lt;userID&amp;gt;)" | stats count(userID)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This extracts user IDs from a csv file (that is our sourcetype)&lt;/P&gt;

&lt;P&gt;When I go to the Fields Extraction page and edit the extraction manually, I don't get any results (actually, it returns none found)&lt;/P&gt;

&lt;P&gt;I have tried editing the inline regex to read \,[abc]\w\w\w\w\w\w(?&lt;USERID&gt;) but it is not returning anything.  I can't seem to find any documentation about the nuances of this inline regex.  Any tips would be great!  &lt;/USERID&gt;&lt;/P&gt;

&lt;P&gt;Thanks, Mike&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144379#M40166</guid>
      <dc:creator>lehrfeld</dc:creator>
      <dc:date>2014-02-10T17:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Edit of reg expressions in Field Extractions page</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144380#M40167</link>
      <description>&lt;P&gt;There may be some editing error, your &lt;CODE&gt;userID&lt;/CODE&gt; capturing group cannot match anything because it's empty.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:48:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144380#M40167</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-10T17:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Edit of reg expressions in Field Extractions page</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144381#M40168</link>
      <description>&lt;P&gt;Can you provide some sample entries?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 17:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144381#M40168</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-10T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Edit of reg expressions in Field Extractions page</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144382#M40169</link>
      <description>&lt;P&gt;Thanks for the responses.  I have a csv with information like email, userID, phone number, etc in it.  A typical userID will be formatted like 'acb1234'.  The issue that I am addressing is that the userID location between the various sourcetypes has changed over time.  Meaning that in version one, the userID was in the second column, in version two, is has moved to the 8th column.  &lt;/P&gt;

&lt;P&gt;Sample entry would be &lt;BR /&gt;
&lt;A href="mailto:mike@email.com"&gt;mike@email.com&lt;/A&gt;, abc1234, 555-555-1212, FName, LName ...&lt;BR /&gt;
AND&lt;BR /&gt;
21, &lt;A href="mailto:mike@email.com"&gt;mike@email.com&lt;/A&gt;, FName, LName, abc1234, 555-555-1212 etc..&lt;/P&gt;

&lt;P&gt;Thank you! Mike&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 18:00:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144382#M40169</guid>
      <dc:creator>lehrfeld</dc:creator>
      <dc:date>2014-02-10T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Edit of reg expressions in Field Extractions page</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144383#M40170</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   | rex  "(,\s)* (?P&amp;lt;userID&amp;gt;\w\w\w\d\d\d\d)(,\s)*"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;assumming userId format is 3 alphabet and 4 digits. Update this if necessary.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 18:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144383#M40170</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-10T18:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Manual Edit of reg expressions in Field Extractions page</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144384#M40171</link>
      <description>&lt;P&gt;That is great!  Thank you!  Mike&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2014 19:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Manual-Edit-of-reg-expressions-in-Field-Extractions-page/m-p/144384#M40171</guid>
      <dc:creator>lehrfeld</dc:creator>
      <dc:date>2014-02-10T19:31:28Z</dc:date>
    </item>
  </channel>
</rss>

