Hi everyone, i noticed that alerting is not working if i use a costum dynamic template.
After having created a query on a watcher i'm not able to create a trigger, here's the message from extraction query:
Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [_doc : {dynamic_templates=[{message_text={path_match=message, mapping={type=text}}}, {cust_msg_text={path_match=cust_msg, mapping={type=text}}}, {payload_text={path_match=payload*, mapping={type=text}}}, {playload={path_match=playload*, mapping={type=text}}}, {timestamp_fix={path_match=timestamp, mapping={format=YYYY MMM dd HH:mm:ss:SSS||YYYY-MM-dd HH:mm:ss.SSZZ||YYYY-MM-dd'T'HH:mm:ss.SSSZZ||YYY-MM-dd'T'HH:mm:ss.SZZ||YYY-MM-dd'T'HH:mm:ss.SZ||YYYY-MM-dd'T'HH:mm:ss,SZZ||YYYY-MM-dd'T'HH:mm:ss.SSSz||YYYY-MM-dd'T'HH:mm:ss.Sz||YYYY-MM-dd'T'HH:mm:ss.SSz||YYYY-MM-dd'T'HH:mm:ss,SSSz||YYYY-MM-dd'T'HH:mm:ss,Sz||YYYY-MM-dd'T'HH:mm:ss,SSz||YYYY-MM-dd'T'HH:mm:ssz, type=date}}}]}]
As for my custum template:
{
"index_patterns": [
"*"
],
"order": 0,
"mappings": {
"dynamic_templates": [
{
"message_text": {
"path_match": "message",
"mapping": {
"type": "text"
}
}
},
{
"cust_msg_text": {
"path_match": "cust_msg",
"mapping": {
"type": "text"
}
}
},
{
"payload_text": {
"path_match": "payload*",
"mapping": {
"type": "text"
}
}
},
{
"playload": {
"path_match": "playload*",
"mapping": {
"type": "text"
}
}
},
{
"timestamp_fix": {
"path_match": "timestamp",
"mapping": {
"type": "date",
"format": "YYYY MMM dd HH:mm:ss:SSS||YYYY-MM-dd HH:mm:ss.SSZZ||YYYY-MM-dd'T'HH:mm:ss.SSSZZ||YYY-MM-dd'T'HH:mm:ss.SZZ||YYY-MM-dd'T'HH:mm:ss.SZ||YYYY-MM-dd'T'HH:mm:ss,SZZ||YYYY-MM-dd'T'HH:mm:ss.SSSz||YYYY-MM-dd'T'HH:mm:ss.Sz||YYYY-MM-dd'T'HH:mm:ss.SSz||YYYY-MM-dd'T'HH:mm:ss,SSSz||YYYY-MM-dd'T'HH:mm:ss,Sz||YYYY-MM-dd'T'HH:mm:ss,SSz||YYYY-MM-dd'T'HH:mm:ssz"
}
}
}
]
}
}
As you can see in mapping there is not _doc which is deprecated,
I think this might be a bug
Best regards