<?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: Field Extraction help!!! in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244071#M7959</link>
    <description>&lt;P&gt;If you always have "PDR Message Listener" before the status value you want to capture, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "PDR Message Listener Completed (?&amp;lt;status&amp;gt;\s+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the string before status value is not constant but always 3 words, then try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "^(\w+\s){3}(?&amp;lt;status&amp;gt;\s+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Mar 2016 19:50:26 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-09T19:50:26Z</dc:date>
    <item>
      <title>Field Extraction help!!!</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244070#M7958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am newbie to splunk,We are looking to extract a field from below event format.&lt;/P&gt;

&lt;P&gt;"PDR Message Listener Completed Processing Message"&lt;/P&gt;

&lt;P&gt;From above , we need to extract a field after "PDR Message Listener"  as field called status as "Completed", Can someone help extraction using Rex command.&lt;/P&gt;

&lt;P&gt;we tried using field extrcation from events ,but it is giving us some false results.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:25:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244070#M7958</guid>
      <dc:creator>splunker9999</dc:creator>
      <dc:date>2016-03-09T19:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction help!!!</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244071#M7959</link>
      <description>&lt;P&gt;If you always have "PDR Message Listener" before the status value you want to capture, try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "PDR Message Listener Completed (?&amp;lt;status&amp;gt;\s+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the string before status value is not constant but always 3 words, then try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "^(\w+\s){3}(?&amp;lt;status&amp;gt;\s+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244071#M7959</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-09T19:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction help!!!</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244072#M7960</link>
      <description>&lt;P&gt;I think the capture group should be &lt;CODE&gt;(?&amp;lt;status&amp;gt;\w+)&lt;/CODE&gt; and not use \s+, right?&lt;/P&gt;

&lt;P&gt;edit: formatting&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244072#M7960</guid>
      <dc:creator>vasildavid</dc:creator>
      <dc:date>2016-03-09T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction help!!!</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244073#M7961</link>
      <description>&lt;P&gt;or if you want to use &lt;CODE&gt;\s&lt;/CODE&gt; then it should be &lt;CODE&gt;"^(\w+\s){3}(?&amp;lt;status&amp;gt;[^\s]+)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 19:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Field-Extraction-help/m-p/244073#M7961</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-03-09T19:58:46Z</dc:date>
    </item>
  </channel>
</rss>

