Better names for index patterns

Hi,

In several screens in Kibana you use the indexpatterns to select in which indices your query should run. However, these patterns an become pretty ugly, especiallywhen also taking remote indices with them.

Is there a way to give those an alias or a name so users have a better understanding what kind of data they are looking at?

I would like to see those names then in the indices dropdown on the upperleft for example?

Hey, you should be able to use Elasticsearch index aliases for this: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html#indices-aliases-api-add-multi-alias-ex

Create an alias with the name you want to see in the UI via dev tools, then create the index pattern pointing to the index.

Can I use these with datastreams? Since my indexpatterns point to a datastreams.
And as far as I can see, I still need to seperately name local and remote alias, right? like: *:<indexalias>,<indexalias>

About your second question: Yes, you would still have to specify remote indices. I definitely see the use case to have nice looking identifiers on the Kibana side. Could you open a feature request for this here: https://github.com/elastic/kibana/issues/new?template=Feature_request.md ?

About datastreams - I'm not 100% sure about this, I forwarded the question to more knowlegable colleagues.

Just got the confirmation - Aliases don't work together with data streams

That's a pity. Will make a feature request

edit: https://github.com/elastic/kibana/issues/83295

1 Like

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