<?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 Can you rename strings within mv-fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189976#M98534</link>
    <description>&lt;P&gt;Id like to rename every instance of "dragDrop" to "stackDragDrop" from a multi-value field. &lt;/P&gt;

&lt;P&gt;The search below just renames one instance. Any ideas on how to do this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\var\\regression_items\\*.xml" 
| rex "title=\"(?P&amp;lt;id&amp;gt;\d+)\"" 
| rex max_match=0 "(class=\"stack\").+(data-type=\")(?P&amp;lt;STACK&amp;gt;\w+)(\")"
| eval TEST=mvfilter(STACK = "dragDrop")
| eval selectionElements=case(TEST="dragDrop", "stackDragDrop") 
| table id selectionElements TEST
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Jun 2014 19:09:55 GMT</pubDate>
    <dc:creator>lmacneil76</dc:creator>
    <dc:date>2014-06-05T19:09:55Z</dc:date>
    <item>
      <title>Can you rename strings within mv-fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189976#M98534</link>
      <description>&lt;P&gt;Id like to rename every instance of "dragDrop" to "stackDragDrop" from a multi-value field. &lt;/P&gt;

&lt;P&gt;The search below just renames one instance. Any ideas on how to do this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\var\\regression_items\\*.xml" 
| rex "title=\"(?P&amp;lt;id&amp;gt;\d+)\"" 
| rex max_match=0 "(class=\"stack\").+(data-type=\")(?P&amp;lt;STACK&amp;gt;\w+)(\")"
| eval TEST=mvfilter(STACK = "dragDrop")
| eval selectionElements=case(TEST="dragDrop", "stackDragDrop") 
| table id selectionElements TEST
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jun 2014 19:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189976#M98534</guid>
      <dc:creator>lmacneil76</dc:creator>
      <dc:date>2014-06-05T19:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can you rename strings within mv-fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189977#M98535</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="C:\\var\\regression_items\\*.xml" 
| rex "title=\"(?P&amp;lt;id&amp;gt;\d+)\"" 
| rex max_match=0 "(class=\"stack\").+(data-type=\")(?P&amp;lt;STACK&amp;gt;\w+)(\")"
| eval TEST=mvfilter(STACK="dragDrop") |eval selectionElements=TEST | replace dragDrop with stackDragDrop in selectionElements
| table id selectionElements TEST
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jun 2014 19:24:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189977#M98535</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-05T19:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can you rename strings within mv-fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189978#M98536</link>
      <description>&lt;P&gt;Perfect! I was missing replace. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2014 01:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-rename-strings-within-mv-fields/m-p/189978#M98536</guid>
      <dc:creator>lmacneil76</dc:creator>
      <dc:date>2014-06-06T01:51:02Z</dc:date>
    </item>
  </channel>
</rss>

