# Elasticsearch docker - logs are spammed with "Content type detection for rest requests is deprecated."

**URL:** <https://discuss.elastic.co/t/elasticsearch-docker-logs-are-spammed-with-content-type-detection-for-rest-requests-is-deprecated/92779>\
**Category:** Elasticsearch\
**Created:** [July 12, 2017, 8:17am UTC](https://discuss.elastic.co/t/elasticsearch-docker-logs-are-spammed-with-content-type-detection-for-rest-requests-is-deprecated/92779 "2017-07-12T08:17:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josef\_Cech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josef_cech/32/19995_2.png) [@Josef\_Cech](https://discuss.elastic.co/u/Josef_Cech)\
**Post date:** [July 12, 2017, 8:17am UTC](https://discuss.elastic.co/t/elasticsearch-docker-logs-are-spammed-with-content-type-detection-for-rest-requests-is-deprecated/92779/1 "2017-07-12T08:17:03Z")

</div>

Hi.  
When I start elasticsearch 5.5.0 via docker then it keeps spamming logs with this message (it's generated every two seconds or so):

> elasticsearch\_1 | [2017-07-12T08:07:23,432][WARN][o.e.d.r.RestController] Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header.

Relevant part of my docker compose file:

```
  elasticsearch:
    image: "docker.elastic.co/elasticsearch/elasticsearch:5.5.0"
    ports:
     - "9200:9200"

```

Can it be turned off / fixed somehow?  
Note: Right now I'm not communicating with ES at all (apart from initial \_template setup)...

Thanks,  
Josef.

---

<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:** [July 12, 2017, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-docker-logs-are-spammed-with-content-type-detection-for-rest-requests-is-deprecated/92779/2 "2017-07-12T08:32:12Z")

</div>

You need to change the client which is calling elasticsearch.

What is it?

---

<div class="post-metadata">

**Author:** ![Josef\_Cech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josef_cech/32/19995_2.png) [@Josef\_Cech](https://discuss.elastic.co/u/Josef_Cech)\
**Post date:** [July 12, 2017, 8:56am UTC](https://discuss.elastic.co/t/elasticsearch-docker-logs-are-spammed-with-content-type-detection-for-rest-requests-is-deprecated/92779/3 "2017-07-12T08:56:54Z")

</div>

Nevermind... such a stupid mistake. I'm moving my localhost stuff to docker and started with elasticsearch... but I've forgot that I have still logstash up and running...

Thanks. .))

---

<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 9, 2017, 8:56am UTC](https://discuss.elastic.co/t/elasticsearch-docker-logs-are-spammed-with-content-type-detection-for-rest-requests-is-deprecated/92779/4 "2017-08-09T08:56:56Z")

</div>

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