Rename Terms Aggregation Buckets

I would like to apply a common renaming rule to the aggregated terms buckets (such as using regex) that removes part of the names shown in red below:

The dream would be to add a regex somewhere (doing something like /(/Accounts*).*$/), but that does not seem to be possible. I looked into adding some custom query to the advanced "JSON input" etc and googled around alot. The best thing I have yet found is to add a "Scripted field" but it has not been used by us before, so it would be awesome to just find another way to do it directly within the dashboard or modifying its source. Any ideas?

Thanks!
Lukas

A scripted field is really the answer here.

Some links in case you haven't seen them: Scripted fields technical docs and a blog post on scripted fields (a little old now but still basically accurate).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.