# Content type detection for rest requests is deprecated

**URL:** <https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814>\
**Category:** Elasticsearch\
**Created:** [May 15, 2017, 7:55pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814 "2017-05-15T19:55:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zfs/32/13370_2.png) [@Zfs](https://discuss.elastic.co/u/Zfs)\
**Post date:** [May 15, 2017, 7:55pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814/1 "2017-05-15T19:55:41Z")

</div>

Hi,

I've upgraded from 5.1.1 to 5.4.0 and my two nodes that receive data from logstash is dumping a lot of the below into the \_depreciation log. I am still in the process of upgrading all my Logstash instances form 5.1 / 5.2 to 5.4.0. Will this go away when all Logstash instances are upgraded to 5.4.0? or is there a new flag I need to add?

```
 [WARN][o.e.d.r.RestController] Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header.

```

Thanks

---

<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:** [May 15, 2017, 8:08pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814/2 "2017-05-15T20:08:08Z")

</div>

Yes. Upgrade logstash and you're done

---

<div class="post-metadata">

**Author:** ![Zfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zfs/32/13370_2.png) [@Zfs](https://discuss.elastic.co/u/Zfs)\
**Post date:** [May 15, 2017, 8:08pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814/3 "2017-05-15T20:08:52Z")

</div>

great thanks for the quick response.

---

<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:** [June 12, 2017, 8:09pm UTC](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814/4 "2017-06-12T20:09:26Z")

</div>

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