How can we request Kibana?

How can we request Kibana with a REST API to receive a request for visualization and response?

Like this: screenshot

I want to do this using NodeJS to manipulate these Kibana results. The goal is that I want to directly request Kibana programmatically (via the REST API) to get the body of the ES request.

+5
source share
2 answers

You can directly request ES. Documentation here

+6
source

You can go to the kibana \ kibana-4.5.1-windows \ optimize \ bundles \ kibana.bundle.js file, search for the "Transport.prototype.request = function (params, cb)" function, and add parent.postMessage(params.body, "*"); to the first line parent.postMessage(params.body, "*"); Now go to the controller or script that control the iframe (the parent of the iframe) and add

 $window.addEventListener("message", function (event) { var data=event.data; }); 

eg:

  <iframe id="ifr" src="http://localhost:5601/goto/6ba8a6b8ceef3tyt454789e4fe5cf5"></iframe> <script> $window.addEventListener("message", function (event) { var data=event.data; }); </script 

Now you will receive a request request

+1
source

All Articles