elasticsearch Kibana中的计数字符串字段
如果字符串字段与正则表达式匹配,我想对其进行计数 Ex:elasticsearch Kibana中的计数字符串字段,elasticsearch,kibana,kibana-4,elasticsearch,Kibana,Kibana 4,如果字符串字段与正则表达式匹配,我想对其进行计数 Ex: "mappings": { "test": { "properties": { "id1": { "type": "string" }, "payload": { "type": "string" }, "id2": {
"mappings": {
"test": {
"properties": {
"id1": {
"type": "string"
},
"payload": {
"type": "string"
},
"id2": {
"type": "string"
},
"timestamp": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
}
}
}
}
仅当有效负载与[a-zA-Z]*
"mappings": {
"test": {
"properties": {
"id1": {
"type": "string"
},
"payload": {
"type": "string"
},
"id2": {
"type": "string"
},
"timestamp": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
}
}
}
}
我想用字段创建一个表,那么我应该在哪里添加查询或脚本呢