-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Discover doesn't show field aliases #21705
Comments
Same results with non-time series data. |
@bhavyarm are the field aliases showed in the document itself? I'm guessing not but want to confirm. I would think this would be considered a blocking bug, no? Field aliases are expected to work as any other field. There should be support in the query bar, KQL and available to configure in visualize, just as normal fields. cc: @elastic/kibana-discovery |
@alexfrancoeur No. They didn't show in the documents or results because we display only source in Discover. Alias for timestamp showed up in the sidebar because I used it as my timefield. |
I opened an issue here with a proposal how we can potentially solve / improve this problem: #28570 |
Is there are any workarround for it? |
@DmitryLanda can you be more specific? The original description says;
Did you try that? Need help with that? If yes, it might be best to post your specific question on https://discuss.elastic.co/c/kibana |
Unfortunately, they also don't show up in saved searches, including those embedded in dashboards.
@alexfrancoeur I would have expected aliases to work exactly like normal fields, too. If they're not shown in Discover or saved searches in dashboards that partially defeats the purpose of using them for backwards and forwards compatibility, e.g. in Beats. They are not fully compatible. A saved search is the only way to display a non-aggregated list of documents in Kibana, and that aliases are not shown in those is a significant limitation. It feels like a bug or regression. It leads to weird situations, like seeing 5 fields Any chance we can get this addressed soon? We're not using aliases a lot in 6.x, but in 7.x this will be quite an issue, e.g. |
@cwurm we are aware this is the existing behavior, currently, you can search by the field alias name, KQLalso supports field aliases, and autocomplete suggest field aliases, our main gap ATM is with the results showing the source so the field aliases do not appear in the results. We raised this as a concern in regards to ECS a few months ago but we were told beats will not be heavily depended on as part of the upgrade from 6.x to 7.0 so it wasn't prioritized high on our list, let's understand the implications and evaluate again if you think it is needed pressing |
From an ECS perspective I think it's not super urgent related to the migration but it would be good to put it (for example #28570) on the near term roadmap. The reason is that I expect that the alias usage not only internally but also by external users is going to increase because of ECS. Users will want to map their own data to ECS but keep the original fields or have the original fields in ECS and alias from the old fields. ECS just went GA today (https://github.com/elastic/ecs/releases/tag/v1.0.0) so I hope also adoption is going to increase. |
I am not sure if I get how aliases should exactly behave in Discover. So one thing I read is that we would like them to show up in the field list, so users see actually both. I assume we also want to highlight the alias somehow in the list. Are there some desires to handle field aliases somehow in the discover table itself, and if so how? |
The main pain point today is if field my suggestion:
if there are multiple aliases for the same single field (less common) we can do few things
|
I am wondering if we need this behavior only in Discover or if that shouldn't be a more centralized behavior. An index pattern already has the possibility to have an My suggestion to simulate the behavior @AlonaNadler described above, but on the index pattern level:
That way we would actually be able to a) use field aliases all across Kibana not just Discover, b) wouldn't even be limited to field aliases, but users could also completely rename a field, to give it a more meaningful name for their users (and since an index pattern is Space based, they could give different target audiences different field names targeted better to them), and c) would still have some kind of "default" behavior for only one alias so it's used automatically. If you think that would also be a feasible idea, I would close this issue here, and open another one for the index pattern enhancement. |
I like your suggestion @timroes, it will be more friednly to do it from the index pattern page and configure the default field name. The only drawback I can think of is that aliases are done on the index level and index patterns are per space, which might make it tedious to change the index pattern in each space, that operation will improve though with a copy to space capability coming soon |
@timroes where is that ^? I don't see it on 7.4.0. I would suggest we start with the simplest approach for Discover.
|
@LeeDr sorry for the confusion, I meant it technically has the possibility to have a separate display name. We currently don't have a UI to let the user configure that. That would be part of my suggestion giving them a UI to let the name configure. I am also a bit concerned putting original field AND alias in the the table, since I see how this easily might cause more confusion than actually help clarifying it (despite the problem that this is technically not easily solveable, since the alias itself is not part of the _source that we are showing, so it's a way more complex approach then actually aliasing the field display names :D) |
What if the default behavior for the |
@timroes If you say the displayName is technically possible, but not via UI. Is there a way to put this into the API call? |
This error also occurs in version 7.7 of Kibana. Values are not shown when the column is mapped as "alias". |
@elastic/kibana-app Any plans to solve that issue? |
@majagrubic / @kertal do we have any updates for this? Thank you! |
woohoo thanks @kertal |
Fixed via #83891 |
Added range slider control for totalElapsedTime. Split "Cumulative elapsed time and number of results" in 2 separate panels. Remove tag cloud. Replace data table with saved search object. Note: column names cannot be changed here - see elastic/kibana#21705.
Added range slider control for totalElapsedTime. Split "Cumulative elapsed time and number of results" in 2 separate panels. Remove tag cloud. Replace data table with saved search object. Note: column names cannot be changed here - see elastic/kibana#21705.
Kibana version: 6.4.0 BC2
Elasticsearch version: 6.4.0 BC2
Server OS version: darwin_x86_64
Browser version: chrome latest
Browser OS version: OS X
Original install method (e.g. download page, yum, from source, etc.): from staging
Describe the bug: Discover doesn't display field aliases in the side bar or in the results except for timestamp alias.
ES document for field aliases: https://www.elastic.co/guide/en/elasticsearch/reference/6.4/alias.html
ES issue: elastic/elasticsearch#23714
Please note, you can create scripted field using them and they show up, you can also filter on them - they show up.
Steps to reproduce:
cc @LeeDr / @AlonaNadler / @alexfrancoeur
mapping_text.txt
The text was updated successfully, but these errors were encountered: