<?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 Extraction Assistance for new field. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329601#M98094</link>
    <description>&lt;P&gt;Try the following rex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
|  rex "\(PM\s(?&amp;lt;PMGroup&amp;gt;[^\-]+)\-PM\)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can create a Field Extraction with the same regular expression once you have tested with your sample data. You can also use regex101.com for understanding how this regex is working.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 20:30:54 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-04-12T20:30:54Z</dc:date>
    <item>
      <title>RegEx Extraction Assistance for new field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329600#M98093</link>
      <description>&lt;P&gt;I have a field that looks like the below.&lt;/P&gt;

&lt;P&gt;PM=Rodhouse,Logan (PM Build VZT-PM)&lt;BR /&gt;
PM=Allen,Jim (PM Run-PM)&lt;/P&gt;

&lt;P&gt;Basically breaksdown like the below.&lt;BR /&gt;
PM= Last,First Name (PM &lt;STRONG&gt;"Group"&lt;/STRONG&gt;-PM)&lt;/P&gt;

&lt;P&gt;I would like to create a custom field for the Any Text that is in the &lt;STRONG&gt;"Group"&lt;/STRONG&gt; Part.&lt;BR /&gt;
PMGroup=&lt;STRONG&gt;"Group"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;PMGroup=Build VZT&lt;BR /&gt;
PMGroup=Run&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 20:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329600#M98093</guid>
      <dc:creator>matt4321</dc:creator>
      <dc:date>2018-04-12T20:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx Extraction Assistance for new field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329601#M98094</link>
      <description>&lt;P&gt;Try the following rex command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt;
|  rex "\(PM\s(?&amp;lt;PMGroup&amp;gt;[^\-]+)\-PM\)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can create a Field Extraction with the same regular expression once you have tested with your sample data. You can also use regex101.com for understanding how this regex is working.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 20:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329601#M98094</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-12T20:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx Extraction Assistance for new field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329602#M98095</link>
      <description>&lt;P&gt;This worked perfect but for some reason I had to add field=PM for it to extract properly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex field=PM "\(PM\s(?&amp;lt;PMGroup&amp;gt;[^\-]+)\-PM\)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Apr 2018 21:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329602#M98095</guid>
      <dc:creator>matt4321</dc:creator>
      <dc:date>2018-04-12T21:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx Extraction Assistance for new field.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329603#M98096</link>
      <description>&lt;P&gt;Ok my query was for raw data so it should have also worked, but field=PM would work as well. Eventually create a field extraction with regex using &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;Interactive Field Extraction&lt;/A&gt; or props.conf/transforms.conf whichever you are comfortable with. &lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 05:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-Extraction-Assistance-for-new-field/m-p/329603#M98096</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-13T05:44:20Z</dc:date>
    </item>
  </channel>
</rss>

