<?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: extract selected data from given field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-selected-data-from-given-field/m-p/312959#M93673</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| rex field=original_field_name "(?&amp;lt;error_code&amp;gt;.*?)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 06 Apr 2017 05:48:10 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2017-04-06T05:48:10Z</dc:date>
    <item>
      <title>extract selected data from given field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-selected-data-from-given-field/m-p/312958#M93672</link>
      <description>&lt;P&gt;I've error messages in the filed name "ErrorMessage"; i want to extract only error code using regex expression.&lt;BR /&gt;
Pls some one help with correct regex.&lt;/P&gt;

&lt;P&gt;filed1   field2 filed3  and so on ...              ErrorMessage&lt;BR /&gt;
                                                                        ANK-BEQ-1014 Dispatcher detected an error4.&lt;BR /&gt;
                                                                        ANK-BEQ-1015 Dispatcher detected an error5.&lt;BR /&gt;
                                                                        ANK-BEQ-1016 Dispatcher detected an error6.&lt;BR /&gt;
                                                                        Logon Error.&lt;BR /&gt;
                                                                        System Error.&lt;/P&gt;

&lt;P&gt;Expected results Error codes:&lt;BR /&gt;
ANK-BEQ-1014&lt;BR /&gt;
ANK-BEQ-1015&lt;BR /&gt;
ANK-BEQ-1016&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 19:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-selected-data-from-given-field/m-p/312958#M93672</guid>
      <dc:creator>x05311</dc:creator>
      <dc:date>2017-04-05T19:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: extract selected data from given field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-selected-data-from-given-field/m-p/312959#M93673</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| rex field=original_field_name "(?&amp;lt;error_code&amp;gt;.*?)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Apr 2017 05:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-selected-data-from-given-field/m-p/312959#M93673</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-04-06T05:48:10Z</dc:date>
    </item>
  </channel>
</rss>

