随笔分类 -  elasticsearch

摘要:1. 创建索引 说明:在这里面的mappings部分,可以从其他索引中进行拷贝过来,注意这个mappings中的info是自定义的,有的用_docs PUT /test12 { "mappings" : { "info" : { "properties" : { "@timestamp" : { " 阅读全文
posted @ 2022-06-29 09:17 理舞 阅读(86) 评论(0) 推荐(0)
摘要:elasticdump可以直接下载es中得数据,需要通过npm方式安装下载elasticdump,所以需要先安装nodejs 1. 安装nodejs 将该文件上传到服务器中,或直接使用wget方式下载nodejs;切换到你得下载目录中,然后进行解压: [root@localhost ~]# tar 阅读全文
posted @ 2022-03-25 19:06 理舞 阅读(1525) 评论(0) 推荐(0)
摘要:Kibana中操作 # 要检查群集运行状况 GET /_cat/health?v # 获取群集中的节点列表 GET /_cat/nodes?v # 列出所有的索引 GET /_cat/indices?v # 创建索引 PUT /customer?pretty PUT /customer/_doc/1 阅读全文
posted @ 2022-03-25 18:42 理舞 阅读(22) 评论(0) 推荐(0)