By using index aliases in Elasticsearch, we can search one or more indices using a friendly, non-permanent name. In this hands-on lab, you will create, use, and remove aliases in Elasticsearch.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Add the Alias “sample_data” to the Appropriate Indices
From the Kibana console, apply the
sample_data
alias to thekibana_sample_data_ecommerce
,kibana_sample_data_flights
, andkibana_sample_data_logs
indices.- Add the Alias “othello” to the `shakespeare` Index with the Necessary Filtering
From the Kibana console, apply the
othello
alias, which should filter documents where theplay_name.keyword
field is "Othello", to theshakespeare
index.- Configure the “sample_data” Component Template and “sample_data_bank” Index Template with the Appropriate Aliases
From the Kibana console, do the following:
- Create the component template
sample_data
, which should be configured to apply thesample_data
alias. - Create the
sample_data_bank
index template, which should:- Match indices that start with "accounts-"
- Be composed of the
sample_data
component template. - Include the
bank
alias. - Be configured to create indices with one primary and zero replica shards.
- Create the component template