Hi,
I have written a proxy server code in my existing application to proxy kibana deployed on AWS. The logic is simple I put in few headers and rewrite all urls starting with _plugin/kibana to myApp/_plugin/kibana to go through my application.
so basically i call http://myserver/mpApp/_plugin/kibana. I could get kibana to load the GUI.
I have an existing index datacuts and have 2 dashboards created for it already.
When I access dev tools and say
GET datacuts
I can see the mappings of my index.
But when I run a query like
GET datacuts/datacut/_search
I get a index not found exception. [404] I am not sure why this is happening to me. In my code I am setting the following headers
Access-Control-Allow-Origin, content-type, kbn-version[5.5.2].
and of course I am copying the body and the query string in url as it is.
One more thing that I noticed is that when I load my kibana through the proxy the first _msearch call fails with a 400 with below error.
{"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: no requests added;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: no requests added;"},"status":400} header{access-control-allow-origin=[*], Cache-Control=[no-cache], Content-Type=[application/json; charset=UTF-8], Date=[Wed, 04 Apr 2018 13:54:41 GMT], kbn-name=[kibana], kbn-version=[5.5.2], server=[Jetty(8.1.12.v20130726)], x-amzn-RequestId=[b91dc342323-380f-11e8-aa97-5906cd206e04], Content-Length=[235], Connection=[keep-alive]}
Any help would be much appreciated!