# Deprecation warnings in Elasticsearch 6.6

**URL:** <https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461>\
**Category:** Elasticsearch\
**Created:** [March 1, 2019, 8:53am UTC](https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461 "2019-03-01T08:53:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)\
**Post date:** [March 1, 2019, 8:53am UTC](https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461/1 "2019-03-01T08:53:06Z")

</div>

Hi,

could you please help me figuring out how to get rid of these deprecation warnings?

```
[WARN][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] [WzjI3Q1] Deprecated field [template] used, replaced by [index_patterns]
[WARN][o.e.d.c.ParseField] [WzjI3Q1] Deprecated field [all_fields] used, replaced by [Set [fields] to `*` instead]
[WARN][o.e.d.c.ParseField] [WzjI3Q1] Deprecated field [inline] used, expected [source] instead
[WARN][o.e.d.c.ParseField] [WzjI3Q1] key [timeout] is not supported in the metadata section and will be rejected in 7.x
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 1, 2019, 11:26am UTC](https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461/2 "2019-03-01T11:26:36Z")

</div>

```
[WARN][o.e.d.a.a.i.t.p.PutIndexTemplateRequest] [WzjI3Q1] Deprecated field [template] used, replaced by [index_patterns]

```

See [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html) where you have the right way to create a template.

```
[WARN][o.e.d.c.ParseField] [WzjI3Q1] Deprecated field [all_fields] used, replaced by [Set [fields] to `*` instead]

```

See [https://www.elastic.co/guide/en/elasticsearch/reference/6.6/mapping-all-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.6/mapping-all-field.html)

```
[WARN][o.e.d.c.ParseField] [WzjI3Q1] Deprecated field [inline] used, expected [source] instead

```

I don't know about this one. Could you share what you are doing when this is appearing?

```
[WARN][o.e.d.c.ParseField] [WzjI3Q1] key [timeout] is not supported in the metadata section and will be rejected in 7.x

```

I don't know about this one. Could you share what you are doing when this is appearing?

---

<div class="post-metadata">

**Author:** ![espogian](https://avatars.discourse-cdn.com/v4/letter/e/4491bb/32.png) [@espogian](https://discuss.elastic.co/u/espogian)\
**Post date:** [March 1, 2019, 12:54pm UTC](https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461/3 "2019-03-01T12:54:55Z")

</div>

Hi, thanks for replying!  
About the first Warning, It is not clear to me why it is happening.  
I did a `GET _template/*` and within all templates I always see the `"index_patterns"` field.  
The only custom template I've loaded, is formatted as follows:

```
PUT _template/custom
{
	"index_patterns": ["logstash-*"],
    "order" : 0,
	"settings": {
		"index": {
			"refresh_interval": "30s",
			"number_of_shards": 1,
			"number_of_replicas": 0
		}
	}
}

```

It seems correct according to the mentioned documentation.  
Is there something else I'm not considering?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 1, 2019, 3:27pm UTC](https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461/4 "2019-03-01T15:27:07Z")

</div>

I believe that elasticsearch automatically fixes it, read the old format and write to the new format.  
But in the future if you still send the old format it will be rejected.

---

<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:** [March 29, 2019, 3:27pm UTC](https://discuss.elastic.co/t/deprecation-warnings-in-elasticsearch-6-6/170461/5 "2019-03-29T15:27:15Z")

</div>

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