<?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 string and place in new field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305072#M91629</link>
    <description>&lt;P&gt;Cheers, Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 21:50:11 GMT</pubDate>
    <dc:creator>sogeniusio</dc:creator>
    <dc:date>2017-10-12T21:50:11Z</dc:date>
    <item>
      <title>Extract string and place in new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305069#M91626</link>
      <description>&lt;P&gt;Trying to extract a string into a new field. A sample of log is as follows:&lt;/P&gt;

&lt;P&gt;productName = Special Day Argyle Socks for Men (Special Day Argyle Socks Size 10-13)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "productName\s=\s(?&amp;lt;ProductName&amp;gt;\s[\w\W]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure where to go from here. When I test within regex101, it works just fine. But when I move to Splunk i get nothing.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Added this but now it doesn't stop at a new line&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "productName\s=\s(?&amp;lt;ProductName&amp;gt;[\w\W]+\n)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 16:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305069#M91626</guid>
      <dc:creator>sogeniusio</dc:creator>
      <dc:date>2017-10-12T16:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string and place in new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305070#M91627</link>
      <description>&lt;P&gt;Figured it out&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "productName\s=\s(?&amp;lt;ProductName&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Oct 2017 16:48:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305070#M91627</guid>
      <dc:creator>sogeniusio</dc:creator>
      <dc:date>2017-10-12T16:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string and place in new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305071#M91628</link>
      <description>&lt;P&gt;I've changed your comment to an answer. Please accept your answer so that it can be noted as having been answered to your satisfaction. You should earn a badge for doing so as a result. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 18:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305071#M91628</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-10-12T18:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extract string and place in new field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305072#M91629</link>
      <description>&lt;P&gt;Cheers, Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 21:50:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-string-and-place-in-new-field/m-p/305072#M91629</guid>
      <dc:creator>sogeniusio</dc:creator>
      <dc:date>2017-10-12T21:50:11Z</dc:date>
    </item>
  </channel>
</rss>

