Elasticsearch 可視化管理工具


ES和Solr是2個比較常見的搜索引擎,但是Solr有控制台頁面,ES就沒有自帶的,下面就推薦2個畢竟使用的工具。

ElasticHD

ElasticHD 支持 ES監控實時搜索Index template快捷替換修改索引列表信息查看SQL converts to DSL工具等。是一款非常伴的 Dashboard。

項目地址https://github.com/360EntSecGroup-Skylar/ElasticHD

docker run -p 9200:9200 -d --name elasticsearch elasticsearch
docker run -p 9800:9800 -d --link elasticsearch:demo containerize/elastichd

 添加測試的索引和數據

[root@iZbp143t3oxhfc3ar7jey0Z ~]#  curl -XPUT 'localhost:9200/test'
{"acknowledged":true,"shards_acknowledged":true,"index":"test"}[root@iZbp143t3oxhfc3ar7jey0Z ~]#
[root@iZbp143t3oxhfc3ar7jey0Z ~]#
[root@iZbp143t3oxhfc3ar7jey0Z ~]# curl -XPUT -H "Content-Type: application/json" 'localhost:9200/test/article/2?pretty' -d '
> {
>   "title": "test",
>   "content":"testsfsdfdsfdsf",
>   "PV":10
> }'
{
  "_index" : "test",
  "_type" : "article",
  "_id" : "2",
  "_version" : 1,
  "result" : "created",
  "_shards" : {
    "total" : 2,
    "successful" : 1,
    "failed" : 0
  },
  "created" : true
}

Dejavu

Dejavu 也是一個 Elasticsearch的 Web UI 工具,其 UI界面更符合當下主流的前端頁面風格,因此使用起來很方便。

項目地址https://github.com/appbaseio/dejavu/

Docker 安裝

[root@iZbp143t3oxhfc3ar7jey0Z ~]# docker run --name elasticsearch -p 9200:9200 -d elasticsearch -E http.port=9200 -E http.cors.allow-origin="http://localhost:1358" -E http.cors.enabled=true -E http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization -E http.cors.allow-credentials=true
56cf057cc654646f985a522357310101db1875780941196246e27759d19f0513
[root@iZbp143t3oxhfc3ar7jey0Z ~]# docker ps -l
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
56cf057cc654 elasticsearch "/docker-entrypoin..." 4 seconds ago Up 3 seconds 0.0.0.0:9200->9200/tcp, 9300/tcp elasticsearch

 注:我的es是5版本的,涉及到跨域的問題,要按照上面的方式啟動ES.

[root@hadoop002 ~]#  docker run -p 1358:1358 -d docker.io/appbaseio/dejavu:3.4.2
58a345b44834e552aac591ad549e81728e76c69103b36c413ff98d04f5f61374
[root@hadoop002 ~]# docker ps -l
CONTAINER ID        IMAGE                              COMMAND                  CREATED             STATUS              PORTS                    NAMES
58a345b44834        docker.io/appbaseio/dejavu:3.4.2   "/bin/sh -c 'node ..."   2 minutes ago       Up 36 seconds       0.0.0.0:1358->1358/tcp   serene_wozniak

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM