Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to specify display names for fields #1896

Closed
chevin99 opened this issue Nov 12, 2014 · 95 comments
Closed

Allow users to specify display names for fields #1896

chevin99 opened this issue Nov 12, 2014 · 95 comments
Labels
enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0 loe:large Large Level of Effort

Comments

@chevin99
Copy link
Contributor

It would be handy to have somewhere to put some JSON to display shorter/prettier field name aliases throughout Kibana.

For example:

{
  "store.address.state" : "State",
  "store.product_list.product.price: "Price",
  "long.elasticsearch.field.name" : "Short Name"
}

So instead of seeing "store.address.state" in a dropdown box or in a visualization you would see "State".

@rashidkpc
Copy link
Contributor

The current way to make field shorter can be set in Settings > Advanced:

image

@chevin99
Copy link
Contributor Author

Cool, I may use that for now. Thanks for the quick reply.

@fpompermaier
Copy link

Aliases will be definitely useful

@antoinebaudoux
Copy link

+1 on this. If you guide me I can try to implement it

@pupamanyu
Copy link

+1

@ajrasch
Copy link

ajrasch commented Apr 6, 2015

+1 This would be extremely cool for aggregation of data across multiple
sources...

On Mon, Apr 6, 2015 at 9:00 AM pramodupamanyu notifications@github.com
wrote:

+1


Reply to this email directly or view it on GitHub
#1896 (comment).

@sgilesaus
Copy link

Hi,

I have changed the shortdots:enable setting, but it has made no difference.
The fields within the "popular fields" pane on the discovery view and the fields in the _Source view still show the full size names.
for example the names in _source are
event.eventPointData.eventData.eventSequence.creationTime
event.eventPointData.eventData.eventSchemaVersion
event.eventPointData.eventData.eventSourceAddress

and the names shown in the popular fields are correspondingly
event.eventPointData.eventData.eventS..
event.eventPointData.eventData.eventS..
event.eventPointData.eventData.eventS..

After making the change, I have stopped and started elasticsearch, kabana and the browser but with no success.
Is there anything else I need to do to get this working? is there another way to get the field names into the popular fields rather than the full path?
kibanascreen

@nmors
Copy link

nmors commented Jun 17, 2015

+1

@nmors
Copy link

nmors commented Jun 17, 2015

Ability to have field aliases per visualization, search object as well as per index, and across all indexes would be really, really, awesome.

Please see my comment on other issue: #2386

@joshsuihn
Copy link

I'm new to Kibana4.. After shortDots:enable is set to true, how can I use this feature?: I mean, how to change field names using aliases in Discover or individual visualizations? (where and how to configure ?...) I googled many pages but didn't find any yet. Thanks

@danielcbright
Copy link

👍

@rashidkpc rashidkpc added v4.4.0 and removed v4.3.0 labels Jul 23, 2015
@madslyng
Copy link

madslyng commented Aug 7, 2015

Very useful!

@scotwells
Copy link

👍

1 similar comment
@biswajit86
Copy link

👍

@fakeh
Copy link

fakeh commented Sep 26, 2015

This would be very useful when combined with #706

@markwalkom
Copy link
Contributor

+1, sooner is better.

@joelclimbsthings
Copy link

+1

4 similar comments
@aki017
Copy link

aki017 commented Oct 27, 2015

+1

@AlexIoannides
Copy link

+1

@kaib
Copy link

kaib commented Oct 29, 2015

+1

@gusreiber
Copy link

+1

@gusreiber
Copy link

If anyone is still looking for a partial work-around, if the field is numeric, you can use a "Scripted field" to alias the label:

"Nice script name" ==> doc['crazy.index.name.that.is.terrible'].value

via the gui "Settings" > "Indices" > [some index] > "+Add Scripted field"

I am not sure what sprinkling Lucene scripts all over the place is likely to do to performance, likely nothing good, but it helped us a few cases. If anyone has anything better for labels on strings, I am in need of a solution.

@Renatdk
Copy link

Renatdk commented Sep 24, 2018

+1

@cjcenizal
Copy link
Contributor

Closing this because this use case will be addressed by the introduction of field aliases to Elasticsearch (https://www.elastic.co/guide/en/elasticsearch/reference/master/alias.html).

@Kolano
Copy link

Kolano commented Oct 8, 2019

This shouldn't have been closed. ES Aliases only seem to allow replacement by valid ES field names and thus don't support aliases using spaces or other odd formatting, for instance this request in the original posting...

"long.elasticsearch.field.name" : "Short Name"

@cjcenizal cjcenizal changed the title Aliases for field names Allow users to specify display names for fields Oct 8, 2019
@cjcenizal cjcenizal added enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed :Management DO NOT USE release_note:enhancement labels Oct 8, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@cjcenizal
Copy link
Contributor

Thanks @Kolano! You're right. I'm reopening this issue because field aliases don't wholly address the original request. I've also changed the title to clarify the request and assigned the issue to the team that will own this enhancement.

@cjcenizal cjcenizal reopened this Oct 8, 2019
@fbaligand
Copy link
Contributor

Thanks @cjcenizal to have reopened the issue!
I will be very happy if this feature is implemented! Particularly to have saved searches with beautiful column labels (with spaces,...) that you put on business dashboards !

@timroes
Copy link
Contributor

timroes commented Oct 9, 2019

@fbaligand We created #47659 to track the effort of renaming column titles in Discover (and thus Saved Searches) separately, since this will mostly happen earlier and separated from having a way to specify display names for fields all across Kibana (which we would use this issue to track this).

@fbaligand
Copy link
Contributor

Great!
Thanks!

@spottedmahn
Copy link

Hi @timroes 👋

We created #47659 to track the effort of renaming column titles in Discover (and thus Saved Searches) separately

Isn't that ask already out there in #15246?

@timroes timroes added Team:AppArch and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Feb 12, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@github-actions github-actions bot added this to To do in kibana-app-arch Feb 12, 2020
@ppisljar ppisljar moved this from To triage to Short Horizon in kibana-app-arch Mar 9, 2020
@ppisljar ppisljar added loe:medium Medium Level of Effort loe:large Large Level of Effort and removed loe:medium Medium Level of Effort labels Mar 9, 2020
@mattkime
Copy link
Contributor

mattkime commented Dec 2, 2020

closed via #70039

@mattkime mattkime closed this as completed Dec 2, 2020
kibana-app-arch automation moved this from Short Horizon to Done in current release Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Data Views Data Views code and UI - index patterns before 8.0 loe:large Large Level of Effort
Projects
kibana-app-arch
  
Done in current release
Development

No branches or pull requests