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

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.

You need to change the client which is calling elasticsearch.

What is it?

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. .))

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