<?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 How to rename multiple field names with certain criteria in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-multiple-field-names-with-certain-criteria/m-p/342731#M101524</link>
    <description>&lt;P&gt;How do I replace the &lt;CODE&gt;MB&lt;/CODE&gt; in each field name with &lt;CODE&gt;GB&lt;/CODE&gt; ??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   XXX-XX-MB   XXX-XXX-MB  XXXXXXMB_XX_XXX
1   2017-07-30 11:00    1391.67548628852    1381.60821617188    1274.532780647
2   2017-07-30 12:00    1509.29349191985    1503.65362613860    1373.894662857
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So my result would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   XXX-XX-GB   XXX-XXX-GB  XXXXXXGB_XX_XXX
1   2017-07-30 11:00    1391.67548628852    1381.60821617188    1274.532780647
2   2017-07-30 12:00    1509.29349191985    1503.65362613860    1373.894662857
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can already change all the field values with this command and was thinking I could do something similar with the field names. &lt;BR /&gt;
&lt;CODE&gt;foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024] |&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2017 23:55:48 GMT</pubDate>
    <dc:creator>HattrickNZ</dc:creator>
    <dc:date>2017-07-30T23:55:48Z</dc:date>
    <item>
      <title>How to rename multiple field names with certain criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-multiple-field-names-with-certain-criteria/m-p/342731#M101524</link>
      <description>&lt;P&gt;How do I replace the &lt;CODE&gt;MB&lt;/CODE&gt; in each field name with &lt;CODE&gt;GB&lt;/CODE&gt; ??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   XXX-XX-MB   XXX-XXX-MB  XXXXXXMB_XX_XXX
1   2017-07-30 11:00    1391.67548628852    1381.60821617188    1274.532780647
2   2017-07-30 12:00    1509.29349191985    1503.65362613860    1373.894662857
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So my result would look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time   XXX-XX-GB   XXX-XXX-GB  XXXXXXGB_XX_XXX
1   2017-07-30 11:00    1391.67548628852    1381.60821617188    1274.532780647
2   2017-07-30 12:00    1509.29349191985    1503.65362613860    1373.894662857
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can already change all the field values with this command and was thinking I could do something similar with the field names. &lt;BR /&gt;
&lt;CODE&gt;foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024] |&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 23:55:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-multiple-field-names-with-certain-criteria/m-p/342731#M101524</guid>
      <dc:creator>HattrickNZ</dc:creator>
      <dc:date>2017-07-30T23:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to rename multiple field names with certain criteria</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-rename-multiple-field-names-with-certain-criteria/m-p/342732#M101525</link>
      <description>&lt;P&gt;try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)|rename *_mb* as *_gb*|foreach *_gb* [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Jul 2017 00:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-rename-multiple-field-names-with-certain-criteria/m-p/342732#M101525</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-07-31T00:53:37Z</dc:date>
    </item>
  </channel>
</rss>

