1.创建模板文章来源:https://www.toymoban.com/news/detail-541034.html
PUT _template/metering_template
{
"index_patterns": ["df_*_metering"],
"settings": {
"number_of_shards": 1,
"number_of_replicas": 1
},
"mappings": {
"dynamic_templates": [//strings类型的字段设置为keyword
{
"strings_as_keywords": {
"match_mapping_type": "string",
"mapping": {
"type": "keyword"
}
}
}
],
"date_detection": false,//日期检测自动转换为日期类型关闭
"properties": {
"count": {//count字段设置为long
"type": "long"
},
"time": {
"type": "date"
}
}
}
}
2.获取模板文章来源地址https://www.toymoban.com/news/detail-541034.html
GET _template/metering_template
{
"metering_template" : {
"order" : 0,
"index_patterns" : [
"df_*_metering"
],
"settings" : {
"index&#
到了这里,关于kibana es创建模板,索引,导入数据,简单聚合查询的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!