修改template
2016-12-09 00:00
239 查看
摘要: 命令执行需要依赖Sense插件
1.查询所有template
GET _template 返回结果 { "logstash": { //template content }, "test_t_template": { //template content }, "topbeat": { //template content } }
2.查询指定template
GET _template/logstash 返回结果 { "logstash": { //template content } }
3.更新template
//template content { "order": 0, "template": "logstash-*", "settings": { "index": { "number_of_replicas": "2", "refresh_interval": "5s" } }, "mappings": { "_default_": { "dynamic_templates": [ { "message_field": { "mapping": { "fielddata": { "format": "disabled" }, "index": "analyzed", "omit_norms": true, "type": "string" }, "match_mapping_type": "string", "match": "message" } }, { "string_fields": { "mapping": { "fielddata": { "format": "disabled" }, "index": "analyzed", "omit_norms": true, "type": "string", "fields": { "raw": { "ignore_above": 256, "index": "not_analyzed", "type": "string" } } }, "match_mapping_type": "string", "match": "*" } } ], "_all": { "omit_norms": true, "enabled": true }, "properties": { "@timestamp": { "type": "date" }, "geoip": { "dynamic": true, "properties": { "ip": { "type": "ip" }, "latitude": { "type": "float" }, "location": { "type": "geo_point" }, "longitude": { "type": "float" } } }, "@version": { "index": "not_analyzed", "type": "string" } } } }, "aliases": {} }
相关文章推荐
- Service
- 阅读笔记&&实现代码_of_Python灰帽子(一)
- 阅读笔记&&实现代码_of_Python灰帽子(二)
- 圣墟 > 第七十八章 秘种生长
- 深度学习 - 相关名词概念
- 深度学习 - Theano 入门
- 初始安装httpd服务启动时的报错
- 将 SeeedArchLink 变为 micro:bit(micropython)
- Windows下的Redis安装教程
- id初期游戏编程的9大法则_广州达内Unity3D培训机构
- 腾讯的《Pokemon Go》要来了,支付宝别跑!_广州达内Unity3D培训机构
- 《最终幻想15》更新计划:开启新游戏+模式_广州达内Unity3D培训机构
- macOS 下的 homebrew
- Docker 命令
- Git上传本地项目到git@OSC
- Linux Perl 升级
- 记录nodejs与mysql
- 一、NSString
- 随机数
- 地图