Monthly Archives: November 2016

How do I find ElasticSearch path to install plugins?

This is for new ElasticSearch user.

If you have installed elastic search and unable to install plugins, here are the easy steps.

1. Type this command

$ curl "localhost:9200/_nodes/settings?pretty=true"

elasticsearch-plugin

Locate your home directory ( Look for Settings -> Path -> Home for value )
2. Go to Location (Example on the picture above)

 cd /opt/kibana/esvm/dev/branch-2.3" 

Install Plugin (Example plugin: mobz/elasticsearch-head)

 sudo bin/plugin install mobz/elasticsearch-head

If you are using old elasticSearch use "-install" instead of just install

I have ES 2.1.0 and the command is : sudo bin/plugin install mobz/elasticsearch-head  for me

How to test –

Open this URL

http://localhost:9200/_plugin/head/

If you see this, your plugin is working.
phpmind-elasticsearch-head-plugin

similarly, you can install other plugins –

sudo bin/plugin install https://github.com/AIsaac08/bigdesk/archive/master.zip

Command which is given in the site is not working on 29th of Nov 2015 


About BigDesk Plugin phpmind-elasticsearch-bigdesk-plugin

How to test – http://localhost:9200/_plugin/bigdesk/

phpmind-elasticsearch-bigdesk-plugin-test

kopf is a simple web administration tool for elasticsearch written in JavaScript + AngularJS + jQuery + Twitter bootstrap

How to install –

<pre>sudo bin/plugin install https://github.com/lukas-vlcek/bigdesk/archive/master.zip</pre>

phpmind-elasticsearch-kopf-plugin

 

How to test –  http://localhost:9200/_plugin/kopf

phpmind-elasticsearch-kopf-plugin-test

About  koph 

Share

How to access external data from Kibana Plugin?

phpmind-kibana-image

To make AJAX call from Kibana Visualization to external web service.

 $.ajax({
     type: "GET",
     url: 'http://localhost/es',
     headers: {'Content-Type':'application/x-www-form-urlencoded'},
     success: function(my_result) {
          console.log(my_result);
     },
     error: function() {
          alert("error1");
     },
});

There are two separate headers that are necessary here: access-control-allow-origin and access-control-allow-headers. You’re currently setting access-control-allow-origin but I don’t see anywhere you’re setting access-control-allow-headers.




Share