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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...