--- layout: default title: Index templates nav_order: 15 --- # Index templates Index templates let you initialize new indexes with predefined mappings and settings. For example, if you continuously index log data, you can define an index template so that all of these indexes have the same number of shards and replicas. ### Create a template To create an index template, use a PUT or POST request: ```json PUT _index_template/