<?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 How to extract field using rex command in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380423#M6509</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have this sample log and I want to extract the request ID value after the period.  Each of those numbers are unique in my log file.  &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Timeout sending message for request ID.140445678&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I've tried various ways but cannot come up with working rex command that would extract those values as a field.&lt;/P&gt;

&lt;P&gt;... | rex field=_raw "request &amp;lt;(?w+)&amp;gt;"&lt;/P&gt;

&lt;P&gt;Any assistance would be awesome, thanks so much.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 02:15:11 GMT</pubDate>
    <dc:creator>philgopaul</dc:creator>
    <dc:date>2019-02-13T02:15:11Z</dc:date>
    <item>
      <title>How to extract field using rex command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380423#M6509</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have this sample log and I want to extract the request ID value after the period.  Each of those numbers are unique in my log file.  &lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Timeout sending message for request ID.140445678&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I've tried various ways but cannot come up with working rex command that would extract those values as a field.&lt;/P&gt;

&lt;P&gt;... | rex field=_raw "request &amp;lt;(?w+)&amp;gt;"&lt;/P&gt;

&lt;P&gt;Any assistance would be awesome, thanks so much.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 02:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380423#M6509</guid>
      <dc:creator>philgopaul</dc:creator>
      <dc:date>2019-02-13T02:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field using rex command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380424#M6510</link>
      <description>&lt;P&gt;@philgopaul ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=_raw "request ID\.(?&amp;lt;request_id&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 06:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380424#M6510</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-02-13T06:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field using rex command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380425#M6511</link>
      <description>&lt;P&gt;You can try this,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval data="Timeout sending message for request ID.140445678" 
| rename data as _raw 
| rex "request\sID\.(?P&amp;lt;request_id&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 08:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380425#M6511</guid>
      <dc:creator>vinod94</dc:creator>
      <dc:date>2019-02-13T08:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field using rex command</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380426#M6512</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "(?&amp;lt;request&amp;gt;\d+)[\r\n\s]*$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-extract-field-using-rex-command/m-p/380426#M6512</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-02-13T16:53:54Z</dc:date>
    </item>
  </channel>
</rss>

