elasticsearch
复杂脑力劳动者
大数据开发、大数据运维
涉猎elk、hdfs、hive、yarn、flink、spark、kafka
展开
-
elasticsearch更新、删除api(带条件)
更新语句1、通过restful api工具a、app01_gtulog_eoi_20190101_20190101/log/_update_by_query 选择POSTb、批量设置ORDER_NUM为1{“script”: {“lang”: “painless”,“inline”: “ctx._source.ORDER_NUM=1”}}2、通过curl,常用curl -XP...原创 2019-11-04 23:00:23 · 445 阅读 · 0 评论 -
python多条件抓去es数据并写入excel(大量数据)
环境:python3.7注意elasticsearch包要跟es环境版本号对应上from elasticsearch import Elasticsearch as esimport xlwtinstance = es(hosts='192.168.21.120')query = { "query": { "bool": { "mu...原创 2019-11-04 22:59:05 · 776 阅读 · 0 评论 -
es python接口批量更新命令
from elasticsearch import Elasticsearch as esinstance = es(hosts='192.168.21.120')query = { "script": { "lang": "painless", "inline": "if(ctx._source.AREA=='上海') {ctx._source.OR...原创 2019-11-04 22:57:52 · 766 阅读 · 0 评论 -
记录一次elasticsearch的写入优化(附带python客户端、golang客户端)
elasticsearch写入优化的探索原创 2019-11-04 22:20:21 · 776 阅读 · 0 评论 -
elasticsearch分词练习、自定义分词器练习
elasticsearch分词练习、自定义分词器练习分词练习自定义分词器分词练习准备数据post metric_zabbix/log{ "@message":"fjdlakjfdklafjda EventType=10 fdsfada", "@timestamp":"2019-02-22T17:45:49.000+08:00"}查看存进去的分词结果post met...原创 2019-09-24 01:42:02 · 602 阅读 · 1 评论