Hi All,

>From Grafana, I Post multisearch query to Elasticsearch using the bulk API
with the newline delimited JSON (NDJSON) format.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html
like this:

curl -u myuser -i -H “Content-Type: application/json” -XPOST "
http://host_ES:900/index/_msearch"; --data-binary ’
{ first json doc}
 {second json doc}
’
when bypassing Knox, The query work well either we made json or x-ndjson,
However, through Knox gateway, if the content-type=application/json, the
query retun this error of 400:

 HTTP/1.1 400 Bad Request
 content-type: application/json

But when we replace json by x-ndjson like mentioned in the bulk API, it
work well.

My problem is that Grafana send their query with the
content-type=application/json and not x-ndjson, for this, it is possible to
make any thing on Knox to solve this problem?

Regards
 Rab

Reply via email to