<?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: Dynamically change field name labels in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88989#M182203</link>
    <description>&lt;P&gt;This works for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename *_rate as "* rate"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's a full example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=5m | eval foo_rate = 1 | eval bar_rate = 2 | rename *_rate as "* rate"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Feb 2013 19:47:27 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-02-12T19:47:27Z</dc:date>
    <item>
      <title>Dynamically change field name labels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88985#M182199</link>
      <description>&lt;P&gt;I have many fields that end with the regular expression _rate.&lt;BR /&gt;
Ex:&lt;BR /&gt;
Compile_rate&lt;BR /&gt;
Typing_rate&lt;/P&gt;

&lt;P&gt;I can get all my rates with this query&lt;BR /&gt;
index="a" |stats dc(&lt;EM&gt;) as * |transpose | regex column=^.&lt;/EM&gt;_rate.*$ | &lt;/P&gt;

&lt;P&gt;However, I would like to rename these results in a new column, with the '_rate' removed.&lt;BR /&gt;
So i would like to have Compile, Typing etc&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:07:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88985#M182199</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2020-09-28T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically change field name labels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88986#M182200</link>
      <description>&lt;P&gt;You're looking for this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename *_rate as *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Jan 2013 08:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88986#M182200</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-01-16T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically change field name labels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88987#M182201</link>
      <description>&lt;P&gt;Great, this worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 17:28:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88987#M182201</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-01-16T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically change field name labels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88988#M182202</link>
      <description>&lt;P&gt;What if I wanted to do something like&lt;BR /&gt;
rename Compile_rate as "Compile rate"&lt;/P&gt;

&lt;P&gt;rename &lt;EM&gt;rate as "&lt;/EM&gt; rate"&lt;BR /&gt;
does not yield me any results&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 18:58:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88988#M182202</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-02-12T18:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically change field name labels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88989#M182203</link>
      <description>&lt;P&gt;This works for me:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rename *_rate as "* rate"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's a full example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=5m | eval foo_rate = 1 | eval bar_rate = 2 | rename *_rate as "* rate"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Feb 2013 19:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88989#M182203</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-12T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically change field name labels</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88990#M182204</link>
      <description>&lt;P&gt;Yup, that works. Sorry, I realized I was not changing my table fields. Quite silly &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 22:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dynamically-change-field-name-labels/m-p/88990#M182204</guid>
      <dc:creator>cmak</dc:creator>
      <dc:date>2013-02-12T22:12:16Z</dc:date>
    </item>
  </channel>
</rss>

