# ES: Content type detection for rest requests is deprecated - 5.4.X

**URL:** <https://discuss.elastic.co/t/es-content-type-detection-for-rest-requests-is-deprecated-5-4-x/91253>\
**Category:** Logstash\
**Created:** [June 29, 2017, 9:02am UTC](https://discuss.elastic.co/t/es-content-type-detection-for-rest-requests-is-deprecated-5-4-x/91253 "2017-06-29T09:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben\_Ortiz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruben_ortiz/32/712_2.png) [@Ruben\_Ortiz](https://discuss.elastic.co/u/Ruben_Ortiz)\
**Post date:** [June 29, 2017, 9:02am UTC](https://discuss.elastic.co/t/es-content-type-detection-for-rest-requests-is-deprecated-5-4-x/91253/1 "2017-06-29T09:02:51Z")

</div>

Hi everyone

- Elasticsearch version: elasticsearch-5.4.3-1.noarch
- Logstash version: logstash-5.4.3-1.noarch

Scenario IT: beaver -\> REDIS -\> Logstash -\> ES  
ELK is working properly. No issues apparently.

I know this is a bit popular topic lately. There are plenty of threads talking about that. However, I did not found any thread yet with the right solution or full information about the issue.

Probably is not very critical however is kind of annoying.

`[2017-06-29T08:53:49,273][WARN][o.e.d.r.RestController] Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header.`

Less than 1 day of uptime produces almost 200MB of log.

I have to mention that I cannot update more my Logstash clients as I read in this thread:

[https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814](https://discuss.elastic.co/t/content-type-detection-for-rest-requests-is-deprecated/85814)

As I wrote above there are (I think) in the last stable version .

Our logstash conf looks like this:

```
input {
  redis {
    host => 'ecluster-cache.xxxxxxxx.com'
    data_type => 'list'
    key => 'logstash'
    type => 'logs'
    batch_count => 10
    threads => 32
  }
}
...
output {
  elasticsearch {
    index => "logstash-%{app}-%{+YYYY.MM.dd}"
    hosts => "ecluster.xxxxxxxxx.com:9200"
    flush_size => 5000
    routing => "hot"
  }

```

Nothing fancy. Any ideas?

Regards,

R

---

<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:** [July 27, 2017, 9:02am UTC](https://discuss.elastic.co/t/es-content-type-detection-for-rest-requests-is-deprecated-5-4-x/91253/2 "2017-07-27T09:02:53Z")

</div>

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