Open One1W opened 6 years ago
You should modify redis-stat/lib/redis-stat/elasticsearch.rb file.
` 24 def initialize hosts, elasticsearch 25 url, @index = elasticsearch 26 @hosts = hosts 27 @client = Elasticsearch::Client.new :url => url, 28 transport_options: { 29 headers: { 'Content-Type' => 'application/json' } 30 } 31 end
`
use nginx
proxy_set_header Content-Type application/json;
[406] {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}