<?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 Rename fields before indexing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Rename-fields-before-indexing/m-p/671909#M112588</link>
    <description>&lt;P class="lia-align-left"&gt;Hello, at the moment we are indexing JSON files in Splunk and then rename the fields with a Field Alias function. This leads to the problem, that we cannot use tStats on these renamed fields anymore.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Now to the question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there a way to rename the fields with splunk before indexing the data?&lt;/LI&gt;&lt;LI&gt;The goal is that we can use tStats on all fields with the new renamed names.&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 14 Dec 2023 15:11:55 GMT</pubDate>
    <dc:creator>simon_b</dc:creator>
    <dc:date>2023-12-14T15:11:55Z</dc:date>
    <item>
      <title>Rename fields before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-fields-before-indexing/m-p/671909#M112588</link>
      <description>&lt;P class="lia-align-left"&gt;Hello, at the moment we are indexing JSON files in Splunk and then rename the fields with a Field Alias function. This leads to the problem, that we cannot use tStats on these renamed fields anymore.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Now to the question:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is there a way to rename the fields with splunk before indexing the data?&lt;/LI&gt;&lt;LI&gt;The goal is that we can use tStats on all fields with the new renamed names.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 14 Dec 2023 15:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-fields-before-indexing/m-p/671909#M112588</guid>
      <dc:creator>simon_b</dc:creator>
      <dc:date>2023-12-14T15:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Rename fields before indexing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Rename-fields-before-indexing/m-p/671928#M112589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250227"&gt;@simon_b&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand: you created some index-time fields from a json and you want to use aliases.&lt;/P&gt;&lt;P&gt;But the fields from a json aren't by default created ad index time, so, if you are creatingindex-time fields, you can create them using the names you like.&lt;/P&gt;&lt;P&gt;Anyway, are you sure that a search on index-time fields (with tstats) doesn't run with aliases?&lt;/P&gt;&lt;P&gt;I haven't index-time json extractions to test, but they shuld run with aliases.&lt;/P&gt;&lt;P&gt;Are you sure thta you extracted json fields at index-time?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 16:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Rename-fields-before-indexing/m-p/671928#M112589</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-12-14T16:05:33Z</dc:date>
    </item>
  </channel>
</rss>

