I got err with the below request :
url = ENV['KIBANA_ELASTICSEARCH_SERVICE'] + '/mib_prod*/_search?filter_path=hits.hits._source.message,hits.hits._source.timestamp'
header = {'Content-Type' => 'application/json'}
body = {"sort": [{ "@timestamp": {"order": "desc"}}], "query":{"query_string": {"query": log_search}}}
add the err is
ERROR: HTTP GET Request failed, URL: http://10.31.143.204:9200/fsaf*/_search?filter_path=hits.hits._source.message,hits.hits._source.timestamp, error message: {"error":"no handler found for uri [http://10.31.143.204:9200/mib_prod*/_search?filter_path=hits.hits._source.message,hits.hits._source.timestamp] and method [GET]"}
ES version is 6.6.0
The Curl request is successful, with "" before " in the URL.
I am unsure if it's the same issue with the URL or any other issues.
Could someone take a look? thanks!