bug描述:在用logstach将SQL文件导入到ELK中,频繁发现导入失败的情形:
配置以下文档:
{
"order": 0,
"version": 50001,
"template": "inssa*",
"settings": {
"index": {
"refresh_interval": "5s"
}
},
"mappings": {
"_default_": {
"dynamic_templates": [
{
"message_field": {
"path_match": "message",
"mapping": {
"norms": false,
"type": "text"
},
"match_mapping_type": "keyword"
}
},
{
"string_fields": {
"mapping": {
"norms": false,
"type": "text",
"fields": {
"keyword": {
"ignore_above": 256,
"type": "keyword"
}
}
},
"match_mapping_type": "keyword",
"match": "*"
}
}
],
"_all": {
"norms": false,
"enabled": true
},
"properties": {
"operationLogId":{
"index":"true",
"type":"keyword"
},
"operationName":{
"index":"true",
"type":"keyword"
},
"serviceType":{
"index":"true",
"type":"keyword"
},
"subServiceType":{
"index":"true",
"type":"keyword"
},
"operationStatus":{
"index":"true",
"type":"keyword"
},
"user_ip":{
"index":"true",
"type":"keyword"
},
"user":{
"index":"true",
"type":"keyword"
},
"timestamp":{
"index":"true",
"type":"keyword"
},
"deleted":{
"index":"true",
"type":"keyword"
},
"createdAt":{
"index":"true",
"type":"keyword"
},
"updatedAt":{
"index":"true",
"type":"keyword"
},
"topologyId":{
"index":"true",
"type":"keyword"
},
"createdBy":{
"index":"true",
"type":"keyword"
},
"updatedBy":{
"index":"true",
"type":"keyword"
},
"eventId":{
"index":"true",
"type":"keyword"
},
"type":{
"index":"true",
"type":"keyword"
},