2021年7月23日

10-python 中使用es

摘要: elasticsearch python客户端使用 https://elasticsearch-py.readthedocs.io/en/master/> pip install elasticsearch 对于elasticsearch 5.x 版本 需要按以下方式导入 from elastics 阅读全文

posted @ 2021-07-23 10:35 paike123 阅读(84) 评论(0) 推荐(0) 编辑

9-es中的查询

摘要: 查询 1 基本查询 根据文档ID curl -X GET 127.0.0.1:9200/articles/article/1 curl -X GET 127.0.0.1:9200/articles/article/1?_source=title,user_id curl -X GET 127.0.0 阅读全文

posted @ 2021-07-23 10:33 paike123 阅读(54) 评论(0) 推荐(0) 编辑

8-Logstash导入mysql数据

摘要: Logstash导入数据 使用logstash 导入工具从mysql中导入数据 Logstach安装 sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch 在 /etc/yum.repos.d/ 中创建logstas 阅读全文

posted @ 2021-07-23 10:25 paike123 阅读(399) 评论(0) 推荐(0) 编辑

导航