一、通过kabana控制台创建
我们在kabana控制台创建一个record_feature_tag的索引,对应的mapping配置如下
PUT /record_feature_tag
{
"mappings": {
"properties" : {
"_class" : {
"type" : "keyword"
},
"api" : {
"type" : "keyword"
},
"app_name" : {
"type" : "keyword"
},
"gmt_create" : {
"type" : "long"
},
"has_case" : {
"type" : "boolean"
},
"source_id" : {
"type" : "keyword"
},
"sum" : {
"type" : "long"
},
"tagMap" : {
"properties" : {
"app_id" : {
"type" : "keyword"
},
"group_type" : {
"type" : "keyword"
},
"method" : {
"type" : "keyword"
},
"origin_app_id" : {
"type" : "keyword"
},
"result_code" : {
"type" : "keyword"
}
}
},
"timestamp" : {
"type" : "date"
}
}
},
"settings"