<?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: How to set all column names to capital letters in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253528#M75870</link>
    <description>&lt;P&gt;I think having a command with explicit renames is honestly your best bet performance wise...  Using an eval trick I learned from @alacercogitatus I came up with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... |  foreach * [eval temp=upper("&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;"), {temp}='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'| fields - "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" temp ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However it too seems to scale terribly with lots of results, taking longer than the base search for merely a few thousand results due to the number of executions it has to make versus a single explicit rename command listing all fields&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2016 13:23:18 GMT</pubDate>
    <dc:creator>acharlieh</dc:creator>
    <dc:date>2016-12-02T13:23:18Z</dc:date>
    <item>
      <title>How to set all column names to capital letters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253524#M75866</link>
      <description>&lt;P&gt;Hello dear Splunkers,&lt;/P&gt;

&lt;P&gt;Any idea how to set column names to uppercase/capital letters? &lt;BR /&gt;
I'm not talking about all the data in the data set, just the column names. I have a table with 10 column and 10000 events and would like to have the column names in capital letters.&lt;BR /&gt;
Also I don't want to have to go through 10 renames, I'm looking for an automatic way to set them all to capital letters in case i add extra columns.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 11:07:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253524#M75866</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2016-12-02T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set all column names to capital letters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253525#M75867</link>
      <description>&lt;P&gt;I don't think there is a shortcut to doing this without using &lt;CODE&gt;rename&lt;/CODE&gt; many times. I do not think you can use &lt;CODE&gt;fieldformat&lt;/CODE&gt; and &lt;CODE&gt;foreach&lt;/CODE&gt; directly. There may be some roundabout way using &lt;CODE&gt;appendpipe&lt;/CODE&gt; to generate a list of new field names and then renaming the old names, but that seems a bit much.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 11:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253525#M75867</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-12-02T11:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set all column names to capital letters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253526#M75868</link>
      <description>&lt;P&gt;I was thinking about something with a transpose -&amp;gt; eval upper -&amp;gt; transpose... But it doesnt seem to work with a lot of rows..&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 12:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253526#M75868</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2016-12-02T12:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set all column names to capital letters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253527#M75869</link>
      <description>&lt;P&gt;Correct, there is a limit on transpose. &lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 13:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253527#M75869</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-12-02T13:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to set all column names to capital letters</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253528#M75870</link>
      <description>&lt;P&gt;I think having a command with explicit renames is honestly your best bet performance wise...  Using an eval trick I learned from @alacercogitatus I came up with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... |  foreach * [eval temp=upper("&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;"), {temp}='&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'| fields - "&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;" temp ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However it too seems to scale terribly with lots of results, taking longer than the base search for merely a few thousand results due to the number of executions it has to make versus a single explicit rename command listing all fields&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 13:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-set-all-column-names-to-capital-letters/m-p/253528#M75870</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2016-12-02T13:23:18Z</dc:date>
    </item>
  </channel>
</rss>

