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

Make saved search fields renameable in Lens / dashboards #194202

Closed
xIndeonx opened this issue Sep 24, 2024 · 5 comments
Closed

Make saved search fields renameable in Lens / dashboards #194202

xIndeonx opened this issue Sep 24, 2024 · 5 comments
Labels
Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.

Comments

@xIndeonx
Copy link

Description

In some dashboards, I have added saved searches. Currently, the columns carry the name of the field. This is not optimal however, as the full field length can be long or hard to understand for viewers of the dashboard. What I mean are these fields:

Image
(Note, I photoshopped the documents out, the info's are there)

It would therefore be great if you could rename these (just as they are displayed to the user), IE host.os.type = OS .I know this is possible with ESQL (with rename X as Y), however it is not a viable option for us due to performance reasons.

@benwtrent benwtrent transferred this issue from elastic/elasticsearch Sep 26, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Sep 26, 2024
@dmlemeshko dmlemeshko added triage_needed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Sep 30, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Sep 30, 2024
@markov00
Copy link
Member

Hi @xIndeonx you can already rename a field name by adding a custom label.
Open the saved search in discover, then click on the column name options and select Edit data view field.
There you can add a custom label. This label will then appear in the table header

Please don't hesitate to reopen this if the problem is different.

@markov00 markov00 added Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. and removed triage_needed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Nov 13, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@Erikg346
Copy link

Hey @markov00,
I think your approach works if you are using a data view for one use.
The issue I experience is that we might use a data view for different use cases and different dashboards. Changing the field name by the data view, will cause it to have the same name across all which isn't ideal.

@davismcphee
Copy link
Contributor

@Erikg346 Although not exactly what you're asking for, another option would be to create a temporary data view with the same index pattern by clicking "Use without saving" in the data view creation flyout, then adding a custom label to one of its fields. This way it wouldn't affect the persisted data view used elsewhere.

You could also add a runtime field to the existing data view under a new name that targets the same underlying value, but this may come with some performance impact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Projects
None yet
Development

No branches or pull requests

6 participants