ELK學習-ElasticSearch常用插件學習之ElasticSearch-SQL
ElasticSearch-SQL為用戶提供了類SQL查詢的功能的插件,支持基本的SQL查詢和聚合查詢。
1、通過ES6插件安裝命令直接安裝:
[pingidm@localhost ~]$ elasticsearch/es01/bin/elasticsearch-plugin install https://github.com/NLPchina/elasticsearch-sql/releases/download/6.2.4.0/elasticsearch-sql-6.2.4.0.zip
2、重啟ES
3、訪問地址http://192.168.119.169:9200/_sql?sql=select * from tutu limit 10,查看tutu這個index中的10條數據:

4、(可選)安裝elasticsearch-sql圖像界面工具:
[pingidm@localhost soft]$ wget https://github.com/NLPchina/elasticsearch-sql/releases/download/5.4.1.0/es-sql-site-standalone.zip
[pingidm@localhost soft]$ unzip es-sql-site-standalone.zip
[pingidm@localhost soft]$ cd site-server
[pingidm@localhost site-server]$ npm install express --save
[pingidm@localhost site-server]$ node node-server.js
訪問http://192.168.119.169:8080查看界面:

注意:在右上角輸入ES的服務地址。
參考官方文檔https://github.com/NLPchina/elasticsearch-sql/wiki
推薦閱讀: