How to solve this "Content type detection for rest requests is deprecated" issue of elastisearch?
elasticsearch, logging, logstash
Solution
For those using curl, a simple addition of
`-H 'Content-Type: application/json'`
Made the trick for me
Problem
I'm getting to much logs in my Elasticsearch server and this log takes too much memory on disk. every 2-3 hour,server is getting around 4 GB logs. Logs looks like- [2017-05-08T03:08:14,616][WARN ][o.e.d.r.RestController ] Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header