Getting Data In

Rename fields before indexing

simon_b
Path Finder

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.

 

Now to the question:

  • Is there a way to rename the fields with splunk before indexing the data?
  • The goal is that we can use tStats on all fields with the new renamed names.
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @simon_b,

let me understand: you created some index-time fields from a json and you want to use aliases.

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.

Anyway, are you sure that a search on index-time fields (with tstats) doesn't run with aliases?

I haven't index-time json extractions to test, but they shuld run with aliases.

Are you sure thta you extracted json fields at index-time?

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...