安装head
head插件可以用来快速查看elasticsearch中的数据概况以及非全量的数据,也支持控件化查询和rest请求,但是体验都不是很好。
一般就用它来看各个索引的数据量以及分片的状态。
[root@localnode1 bin]# ./plugin install mobz/elasticsearch-head
-> Installing mobz/elasticsearch-head...
Plugins directory [/usr/elk/elasticsearch-2.4.0/plugins] does not exist. Creating...
Trying https://github.com/mobz/elasticsearch-head/archive/master.zip ...
Downloading ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Verifying https://github.com/mobz/elasticsearch-head/archive/master.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
Installed head into /usr/elk/elasticsearch-2.4.0/plugins/head
[root@localnode1 bin]# ll
直接访问下面的地址即可:
http://localhost:9200/_plugin/head/
安装sense
sense插件可以方便的执行rest请求,但是中文输入的体验不是很好。
安装sense只需要在Kibana端安装插件即可,插件会自动安装到kibana的应用菜单中。
[hdfs@localnode1 bin]$ kibana plugin -install elastic/sense
-bash: kibana: command not found
[hdfs@localnode1 bin]$ ./kibana plugin -install elastic/sense
Please specify either --install, --remove, or --list.
[hdfs@localnode1 bin]$ ./kibana plugin --install elastic/sense
Installing sense
Attempting to transfer from https://download.elastic.co/elastic/sense/sense-latest.tar.gz
Transferring 1386775 bytes....................
Transfer complete
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
[hdfs@localnode1 bin]$
安装完成后,可以通过导航面板进入,也可以直接访问http://localhost:5601/app/sense
安装marvel
marvel工具可以帮助使用者监控elasticsearch的运行状态,不过这个插件需要license。安装完license后可以安装marvel的agent,agent会收集elasticsearch的运行状态。
然后在Kibana段安装marvel插件,这个插件与sense类似,都集成在kibana的导航列表面。
[hdfs@localnode1 bin]$ ./plugin install license
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.0/license-2.4.0.zip ...
Downloading .......DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.4.0/license-2.4.0.zip checksums if available ...
Downloading .DONE
Installed license into /usr/elk/elasticsearch-2.4.0/plugins/license
[hdfs@localnode1 bin]$ ./plugin install marvel-agent
....
[hdfs@localnode1 bin]$ ./kibana plugin --install elasticsearch/marvel/latest
Installing marvel
Attempting to transfer from https://download.elastic.co/elasticsearch/marvel/marvel-latest.tar.gz
Transferring 2399229 bytes....................
Transfer complete
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
安装完成后,可以通过导航访问,也可以直接访问http://localhost:5601/app/marvel