Elasticsearch template(待续...)
动态模板
Dynamic templates allow you to define custom mappings that can be applied to dynamically added fields based on:
- the datatype detected by Elasticsearch, with
match_mapping_type
. - the name of the field, with
match
andunmatch
ormatch_pattern
. - the full dotted path to the field, with
path_match
andpath_unmatch
.
The original field name {name}
and the detected datatype {dynamic_type
} template variables can be used in the mapping specification as placeholders.
动态模板允许你基于以下条件来对动态增加的字段的映射进行自定义:
1. match_mapping_type 定义 ES 自动检测的数据类型
2. match、unmatch 或 match_pattern 匹配字段名称
3. path_match、path_unmatch 定义字段的全路径
参数说明
template
settings
注意事项
dynamic_templates 类型为数组,多个匹配条件要写为数据的不同元素
示例
为所有索引 (index) 的所有类型 (type) 的所有字符串类型字段(field)都设置为 not_analyzed。
curl -XPUT 'localhost:9200/_template/all' -d ' {"order": 0,"template": "*","settings": {"index.number_of_shards": "1"},"mappings": {"_default_": {"dynamic_templates": [{"string": {"mapping": {"index": "not_analyzed","type": "string"},"match_mapping_type": "string", "match": "field_name*"}}]}},"aliases": {}} } '
转载于:https://www.cnblogs.com/licongyu/p/5251044.html
Elasticsearch template(待续...)相关推荐
- 8.11. Migrating MySQL Data into Elasticsearch using logstash
https://www.elastic.co/guide/en/logstash/current/plugins-inputs-jdbc.html 8.11.1. 安装 logstash 安装 JDB ...
- ElasticSearch实战:Linux日志对接Kibana
本文由云+社区发表 ElasticSearch是一个基于Lucene的搜索服务器.它提供了一个分布式多用户能力的全文搜索引擎,基于RESTFul web接口.ElasticSearch是用Java开发 ...
- elasticsearch配置小记
2019独角兽企业重金招聘Python工程师标准>>> elasticsearch配置小记 博客分类: 搜索引擎,爬虫 基于 elasticsearch 1.4.4 版本.安装方式为 ...
- filebeat Template 报错(安装的时候遇到错误了用这个方法解决的)
filebeat安装的是 filebeat-6.4.2,因为是rpm安装的,默认的日志路径是cat /var/log/filebeat/filebeat,从这里面可以看相关的配置错误. filebea ...
- FileBeat + Pipeline 解析日志 保存至ElasticSearch(实战)
文章目录 FileBeat + Pipeline 解析日志 保存至ElasticSearch(实战) 下载地址 目的 日志数据 模拟Pipeline 创建pipeline 查看Pipeline是否创建 ...
- Windows环境下filebeat配置发送日志至Elasticsearch
一.Windows环境下安装filebeat 官网下载安装包 解压到指定目录,打开解压后的目录,打开filebeat.yml进行配置. 二.配置为输出到ElasticSearch 1.只配置以下三个节 ...
- Elasticsearch+filebeat+logstash+kibana集群
一.Elasticsearch+kibana部署server 注:此文档为傻瓜式安装,以避过所有坑,简单安装方便使用,如遇以外问题请度娘 环境部署&&版本需求 CentOS7 Elas ...
- Springboot/Springcloud整合ELK平台,(Filebeat方式)日志采集及管理(Elasticsearch+Logstash+Filebeat+Kibana)
前言 最近在搞一套完整的云原生框架,详见 spring-cloud-alibaba专栏,目前已经整合的log4j2,但是想要一套可以实时观察日志的系统,就想到了ELK,然后上一篇文章是socket异步 ...
- 一篇文章搞懂Filebeat
本文使用的Filebeat是7.7.0的版本,文章将从如下几个方面说明: Filebeat是什么,可以用来干嘛 Filebeat的原理是怎样的,怎么构成的 Filebeat应该怎么玩 Filebeat ...
最新文章
- 使用 uiautomator2
- 首届Hadoop技术社区中国meetup来袭!对外报名正式启动!
- P5290 [十二省联考2019]春节十二响
- 用Sass创建MetaFizzy效果
- 官方版.NET SDK连线更新(2011/01/19)
- WCF技术剖析之十七:消息(Message)详解(上篇)
- Android 数字格式化
- Linux内核分析作业 NO.2
- ajax跨域请求jsonp
- Scratch3.0安装教程
- 迅歌KTV服务器各型号,十大ktv必点歌曲排行榜 ktv点唱率最高的十首歌榜单公布...
- 如何在IGV上使用BLAT搜索非模式物种
- 微信 jssdk 看着文档简单总结
- Ubuntu 16.04 鼠标可以移动不能点击问题
- 实验7-3-5 输出大写英文字母(15 分)
- 资深摄影师眼中,青岛值得一游的景点有哪些?
- 八大处理器最强手机盘点 手机CPU混战(组图)
- Java-绝对地址与相对地址/绝对定位与相对定位
- 万卷书 - 21世纪的投资 21st Century Investing
- 安卓APP安装兼容性[应用是非正式发布版本, 当前设备不支持安装。]
热门文章
- 钉钉免登陆前端操作详解
- torch.nn.parameter.Parameter分析
- leetcode —— 1. 两数之和
- 【图像处理】透视变换 Perspective Transformation(小细节修正和推导流程补充)
- N皇后问题——通俗易懂地讲解(C++)
- Python-非关键字参数和关键字参数(*args **kw)
- [git] 基础操作-02 分支和主支合并
- vlc 在ubuntu 14下的linux版本编译
- vim 删除多行_Vim 可视化模式入门
- 将更新面板的显示内容清除的代码实现;_免费开源:墨涩必应壁纸网盘系统1.0(自动壁纸更新免维护)