elasticsearch
Es版本 7.4.2
安装
https://blog.csdn.net/weixin_42697074/article/details/103815945
https://blog.csdn.net/weixin_43863895/article/details/106631161
https://www.jianshu.com/p/ef16169f9912
es及ik分词器
https://blog.csdn.net/weixin_42697074/article/details/103815945
Ik分词器
docker exec -it es /bin/sh
/usr/share/elasticsearch/bin
elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.4.2/elasticsearch-analysis-ik-7.4.2.zip
Kibana
https://www.cnblogs.com/linjiqin/p/12103064.html
kibana连接es
https://www.jianshu.com/p/fdfead5acc23
入门
https://www.jianshu.com/p/41a506acc643
https://www.cnblogs.com/jiangchunsheng/p/11756068.html
springboot集成elasticsearch
https://www.cnblogs.com/xidianzxm/p/11929442.html
Elasticsearch Restfull API7.4.2
https://www.jianshu.com/p/07682e610c49
Logstash读取json格式文件数据,导入到Elasticsearch
https://blog.csdn.net/alan_liuyue/article/details/92635108
不可用
/usr/local/logstash-6.7.0/bin/logstash -w 5 -b 600 -f tdm_center_check_flow.conf
/usr/local/logstash-6.7.0/bin/logstash -w 5 -b 600 -f import.conf
nohup /usr/local/logstash-6.7.0/bin/logstash -w 5 -b 600 -f import.conf &
API
删除index : https://www.cnblogs.com/zhangxun1/articles/5916400.html
创建index : https://www.cnblogs.com/loujiang/p/12685034.html
删除index
curl -XDELETE 'http://127.0.0.1:9200/tdm_pass_type_stat'
创建index
#查看所有index
curl http://127.0.0.1:9200/_cat/indices?v
curl http://127.0.0.1:9200/tdm_center_check_flow
导出 : https://www.jianshu.com/p/8c5faa916c08
#es导出所有mapping
docker run --network=host --rm -ti -v /data:/tmp taskrabbit/elasticsearch-dump \
--input=http://127.0.0.1:9200/* \
--output=/tmp/mapping.json \
--type=mapping
#es导出所有数据
docker run --network=host --rm -ti -v /data:/tmp -d taskrabbit/elasticsearch-dump \
--input=http://127.0.0.1:9200/* \
--output=/tmp/data.json \
--type=data
#es导出单个索引数据
docker run --network=host --rm -ti -v /data:/tmp -d taskrabbit/elasticsearch-dump \
--input=http://127.0.0.1:9200/tdm_pass_type \
--output=/tmp/tdm_pass_type.json \
--type=data
导出
https://my.oschina.net/chiyong/blog/552622