2019年8月8日

filebeat直连elasticsearch利用pipeline提取message中的字段

摘要: 这里使用filebeat直连elasticsearch的形式完成数据传输,由于没有logstash,所有对于原始数据的过滤略显尴尬(logstash的filter非常强大)。 但是由于业务需求,还是需要将message(原始数据)中的某些字段进行提取,具体方式如下: 1. /path/目录下建立pi 阅读全文

posted @ 2019-08-08 21:34 ExplorerMan 阅读(616) 评论(0) 推荐(0)

python连接 elasticsearch 查询数据,支持分页

摘要: 使用python连接es并执行最基本的查询 from elasticsearch import Elasticsearch es = Elasticsearch(["localhost:9200"]) para = {"_source":"message"} es.search(index=inde 阅读全文

posted @ 2019-08-08 21:33 ExplorerMan 阅读(2911) 评论(0) 推荐(0)

python 查询 elasticsearch 常用方法(Query DSL)

摘要: 1. 建立连接 from elasticsearch import Elasticsearch es = Elasticsearch(["localhost:9200"]) 2. 查询所有数据 # 方式1: es.search(index="index_name", doc_type="type_n 阅读全文

posted @ 2019-08-08 21:31 ExplorerMan 阅读(15104) 评论(1) 推荐(0)

es笔记---新建es索引

摘要: es对索引的一堆操作都是用restful api去进行的,参数时一堆json,一年前边查边写搞过一次,这回搞迁移,发现es都到6.0版本了,也变化了很多,写个小笔记记录一下。 创建一个es索引很简单,一个put请求。 PUT /my_index { "settings": { ... any set 阅读全文

posted @ 2019-08-08 20:37 ExplorerMan 阅读(3640) 评论(0) 推荐(0)

ES(ElasticSearch) 索引创建

摘要: 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 环境:ES 6.2.2 os:Centos 7 k 阅读全文

posted @ 2019-08-08 20:23 ExplorerMan 阅读(7777) 评论(0) 推荐(0)

Python 操作 ElasticSearch

摘要: 官方文档:https://elasticsearch-py.readthedocs.io/en/master/ 1、介绍 python提供了操作ElasticSearch 接口,因此要用python来操作ElasticSearch,首先要安装python的ElasticSearch包,用命令 pip 阅读全文

posted @ 2019-08-08 19:48 ExplorerMan 阅读(398) 评论(0) 推荐(0)

redis4支持内存碎片清理功能使用

摘要: 最近看到redis4支持内存碎片清理了, 之前一直期待有这么一个功能, 因为之前遇到内存碎片的解决办法就是重启, 现在终于有了优雅的解决方案.\^o^/, 这个功能其实oranagra 在2017年1月1日已经提交pr了, 相关地址: https://github.com/antirez/redis 阅读全文

posted @ 2019-08-08 18:48 ExplorerMan 阅读(1103) 评论(0) 推荐(0)

Linux下安装Elasticsearch6.5

摘要: 1、安装JDK8(Elastic 需要 Java 8 环境) 1)下载jdk8文件:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\ 2)解压文件:tar -zxvf jdk-8u 阅读全文

posted @ 2019-08-08 18:30 ExplorerMan 阅读(454) 评论(0) 推荐(0)

导航