https://github.com/elastic/elasticsearch/issues/25718
Elasticsearch endpoints should take both application/json and
application/x-ndjson. There might be something else going on here. That is
why I asked for the Elasticsearch logs.
It might not be necessary to rewrite the content type.
Kevin Risd
Hi all,
My problem is how to change the content-type=application/json to
application/x-ndjson by rewriting the header in the knox.
Because grafana send their query with content-type=application/json and
knox return status 400,
Hower when i reproduce the problem by curl comande, I noticed that if
Do you have the error from Elasticsearch logs? It might explain if Knox or
Grafana is sending a bad request.
Kevin Risden
On Fri, Sep 21, 2018 at 12:03 PM Sandeep Moré wrote:
> I don't see any issues from Knox side, what error do you see in Grafana ?
> I think this could be because Grafana is
I don't see any issues from Knox side, what error do you see in Grafana ?
I think this could be because Grafana is expecting certain content-type.
On Fri, Sep 21, 2018 at 11:37 AM rabii lamriq wrote:
> Hi Sandeep
>
> thanks for your feedback, below is the deboug log for this curl
>
> 2018-09-18
Hi Sandeep
thanks for your feedback, below is the deboug log for this curl
2018-09-18 17:23:23,154 DEBUG hadoop.gateway
(UrlRewriteProcessor.java:rewrite(166)) - Rewrote URL:
https://:8443/gateway/default/es5//_msearch,
direction: IN via explicit rule: ES5/inbound/query to URL: http://
:9200//_ms
Hello Rab,
Interesting, do you have the debug logs for this ? they will tell us
exactly what is happening.
Best,
Sandeep
On Fri, Sep 21, 2018 at 9:56 AM rabii lamriq wrote:
> Hi All,
>
> From Grafana, I Post multisearch query to Elasticsearch using the bulk API
> with the newline delimited JSO
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 "
h