<?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: Help extracting fields from raw event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296687#M89504</link>
    <description>&lt;P&gt;This is exactly what I needed, thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 14:19:13 GMT</pubDate>
    <dc:creator>hippe21</dc:creator>
    <dc:date>2017-03-29T14:19:13Z</dc:date>
    <item>
      <title>Help extracting fields from raw event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296685#M89502</link>
      <description>&lt;P&gt;Here's what my raw event looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;58daf92d66c83d000e469dfd.txt unsupported file format 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'd like to extract the following below during a search, to pull these fields:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;task = 58daf92d66c83d000e469dfd&lt;/LI&gt;
&lt;LI&gt;fileExt = .txt&lt;/LI&gt;
&lt;LI&gt;errorReason = unsupported file format&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;How can I accomplish this using Rex?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 00:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296685#M89502</guid>
      <dc:creator>hippe21</dc:creator>
      <dc:date>2017-03-29T00:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help extracting fields from raw event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296686#M89503</link>
      <description>&lt;P&gt;Maybe something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?P&amp;lt;task&amp;gt;^[^\.]+)(?P&amp;lt;fileExt&amp;gt;\S+\s(?P&amp;lt;errorReason&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm unsure if that first part should be [^.] or [^.]&lt;/P&gt;

&lt;P&gt;The built in regular expression creator could help here or sites like &lt;A href="https://regex101.com/"&gt;https://regex101.com/&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 07:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296686#M89503</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-03-29T07:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help extracting fields from raw event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296687#M89504</link>
      <description>&lt;P&gt;This is exactly what I needed, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 14:19:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-extracting-fields-from-raw-event/m-p/296687#M89504</guid>
      <dc:creator>hippe21</dc:creator>
      <dc:date>2017-03-29T14:19:13Z</dc:date>
    </item>
  </channel>
</rss>

