<?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: Copy and then parse a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458583#M171255</link>
    <description>&lt;P&gt;Hi a212830,&lt;/P&gt;

&lt;P&gt;see this answer &lt;A href="https://answers.splunk.com/answers/319646/how-to-write-the-regex-to-extract-data-inside-squa.html"&gt;https://answers.splunk.com/answers/319646/how-to-write-the-regex-to-extract-data-inside-squa.html&lt;/A&gt;&lt;BR /&gt;
but you will use this settings in transforms.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \&amp;gt;([^\&amp;lt;]+)\&amp;lt;
FORMAT = MyNewFieldName::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will create a new field called &lt;CODE&gt;MyNewFieldName&lt;/CODE&gt; containing this value &lt;CODE&gt;these are some values&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 20:37:28 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2019-05-13T20:37:28Z</dc:date>
    <item>
      <title>Copy and then parse a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458582#M171254</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a field that already exists, and I want to parse it out into a new field, using props/transforms.  The field is surrounded in brackets, so it's in this format:  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;COMPID&amp;gt; these are some values &amp;lt;/COMPID&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The entired feed is bracket enclosed (but not xml).  I've never done this before, and the regex is killing me as well.  Can anyone help? &lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458582#M171254</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2019-05-13T20:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and then parse a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458583#M171255</link>
      <description>&lt;P&gt;Hi a212830,&lt;/P&gt;

&lt;P&gt;see this answer &lt;A href="https://answers.splunk.com/answers/319646/how-to-write-the-regex-to-extract-data-inside-squa.html"&gt;https://answers.splunk.com/answers/319646/how-to-write-the-regex-to-extract-data-inside-squa.html&lt;/A&gt;&lt;BR /&gt;
but you will use this settings in transforms.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \&amp;gt;([^\&amp;lt;]+)\&amp;lt;
FORMAT = MyNewFieldName::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will create a new field called &lt;CODE&gt;MyNewFieldName&lt;/CODE&gt; containing this value &lt;CODE&gt;these are some values&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 20:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458583#M171255</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-05-13T20:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and then parse a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458584#M171256</link>
      <description>&lt;P&gt;Sorry, getting back to this... not sure this will work, as every field is bracket &amp;lt;&amp;gt; seperated.  I need something that will extract the first string within  the  values.  It contains multiple, white space seperated values. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;COMPID&amp;gt;string1 string2 string3 string4&amp;lt;/COMPID&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Jun 2019 15:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458584#M171256</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2019-06-06T15:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and then parse a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458585#M171257</link>
      <description>&lt;P&gt;Sure this will work, I just did not understood it correct &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;In this case try this regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = \&amp;gt;([^\s]+)\s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will get &lt;CODE&gt;string1&lt;/CODE&gt; from your example as value of the &lt;CODE&gt;MyNewFieldName&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 22:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458585#M171257</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-06-06T22:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and then parse a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458586#M171258</link>
      <description>&lt;P&gt;Hey @a212830, is this a duplicate post to your &lt;A href="https://answers.splunk.com/answers/746434/help-with-props-and-transforms.html"&gt;Help with props and transforms&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 12:45:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Copy-and-then-parse-a-field/m-p/458586#M171258</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2019-07-01T12:45:42Z</dc:date>
    </item>
  </channel>
</rss>

