<?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: Basic Table Header Rename in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315988#M59129</link>
    <description>&lt;P&gt;For those that come to this post via searching, to get this to work, i have to do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fieldformat "Date and Time"=strftime('Date and Time', "%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Full quotes around &lt;EM&gt;Date and Time&lt;/EM&gt; after &lt;STRONG&gt;fieldformat&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 18:18:04 GMT</pubDate>
    <dc:creator>cboillot</dc:creator>
    <dc:date>2019-10-23T18:18:04Z</dc:date>
    <item>
      <title>Basic Table Header Rename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315984#M59125</link>
      <description>&lt;P&gt;I checked through the answers and cannot find anything that matches or will work...&lt;/P&gt;

&lt;P&gt;I am asking how to rename a table header that is being displayed in a query/dashboard.  The log file was indexed with a header name of _time.  I would like to name it Date and Time.&lt;/P&gt;

&lt;P&gt;Query is:&lt;/P&gt;

&lt;P&gt;index="ti_is_st" sourcetype="xfer_log" | regex _raw="^.+*$" | rex field=_raw "^(\S+\s+){8}\/(([^\s\/]+\/)+)(?&amp;lt;fileName&amp;gt;.+)(\s+\S+){8}$" |rex field=File_Status "(?&amp;lt;File_Status&amp;gt;(i|j|k|o|p|q))\s"|search "&lt;EM&gt;$field2$&lt;/EM&gt;" "&lt;EM&gt;$field3$&lt;/EM&gt;" |table _time ip_address Service_Account fileName File_Size File_Status  |replace o with "Download Successful" i with "Upload Successful" j with "Upload Errored" k with "Upload Aborted"  p with "Download Errored" q with "Download Aborted" in File_Status&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:58:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315984#M59125</guid>
      <dc:creator>Mkaz</dc:creator>
      <dc:date>2020-09-29T12:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Table Header Rename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315985#M59126</link>
      <description>&lt;P&gt;`... | rename _time as "Date and Time" | ...&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:44:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315985#M59126</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-02-23T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Table Header Rename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315986#M59127</link>
      <description>&lt;P&gt;Thanks...  Does this then change the column name in the index so then _time variable is no longer available?   When I used the rename, it appears to change the format to a number as shown below.&lt;/P&gt;

&lt;P&gt;2017-02-23 09:49:25  becomes 1487861301 &lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315986#M59127</guid>
      <dc:creator>Mkaz</dc:creator>
      <dc:date>2017-02-23T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Table Header Rename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315987#M59128</link>
      <description>&lt;P&gt;Indexes never change.  You have to use the rename command on every search that does not want to display "_time".&lt;BR /&gt;
I forgot about the implicit fieldformat for _time.  Try &lt;CODE&gt;... | rename _time as "Date and Time" | fieldformat 'Date and Time'=strftime('Date and Time', "%Y-%m-%d %H:%M:%S") | ...&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 16:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315987#M59128</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-02-23T16:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Table Header Rename</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315988#M59129</link>
      <description>&lt;P&gt;For those that come to this post via searching, to get this to work, i have to do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| fieldformat "Date and Time"=strftime('Date and Time', "%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Full quotes around &lt;EM&gt;Date and Time&lt;/EM&gt; after &lt;STRONG&gt;fieldformat&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 18:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Basic-Table-Header-Rename/m-p/315988#M59129</guid>
      <dc:creator>cboillot</dc:creator>
      <dc:date>2019-10-23T18:18:04Z</dc:date>
    </item>
  </channel>
</rss>

