In Elasticsearch, the data we index (verb) is stored in an index (noun). The word index here is used as both a verb and a noun. Essentially, we perform an index operation in order to store data in an index. Before we can do this however, we need to first understand the structure of indices and how to define them in order to meet specific requirements. In this hands-on lab, you will be creating a few indices with specific shard allocation requirements and custom aliases.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create the logs-01 index.
Use the Kibana console tool to execute the following:
PUT /logs-01 { "aliases": { "this_week": {} }, "settings": { "number_of_shards": 2, "number_of_replicas": 1 } }
- Create the logs-02 index.
Use the Kibana console tool to execute the following:
PUT /logs-02 { "aliases": { "last_week": {} }, "settings": { "number_of_shards": 2, "number_of_replicas": 1 } }