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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...