# Index template failing with "reason": "unknown key \[index\_patterns\] for create index"

**URL:** https://discuss.elastic.co/t/index-template-failing-with-reason-unknown-key-index-patterns-for-create-index/338270
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [July 13, 2023, 3:04am UTC](https://discuss.elastic.co/t/index-template-failing-with-reason-unknown-key-index-patterns-for-create-index/338270 "2023-07-13T03:04:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shailendra1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shailendra1/32/122783_2.png) [@shailendra1](https://discuss.elastic.co/u/shailendra1)
#### Post date: [July 13, 2023, 3:04am UTC](https://discuss.elastic.co/t/index-template-failing-with-reason-unknown-key-index-patterns-for-create-index/338270/1 "2023-07-13T03:04:51Z")

</div>

I am facing the unknown key for my index template creation time,

```auto
        "reason": "unknown key [index_patterns] for create index"

```

below is the top heading of my template

```auto
{
    "index_patterns" : [
      "data_center-*"
    ],
    "template": {
      "settings" : {
        "number_of_shards" : "1"
      },
      "mappings" : {
        "properties" : {
          "path" : {
            "type" : "keyword"
          },

```

i was following this for template creations

> **[Index templates | Elasticsearch Guide \[master\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html)**

please suggest,

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 10, 2023, 3:05am UTC](https://discuss.elastic.co/t/index-template-failing-with-reason-unknown-key-index-patterns-for-create-index/338270/2 "2023-08-10T03:05:48Z")

</div>

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