I'm getting this error, while trying to insert a document with an object something:
failed to parse field [alert.something] of type [text]
in document with id 'S7wzjXwBoPDEI_MgkgFb'. Preview of field's value: '{a=b}'",
This is the message:
{
"random" : 1634334912,
"alert" : {
"app_key" : "abc",
"host" : "prod-mongo-1",
"check" : "heap_size",
"status" : "warning",
"something": {
"a": "b"
}
}
}
This is the index template:
{
"order" : 0,
"index_patterns" : [
"rawpayload-*"
],
"settings" : {
"index" : {
"mapping" : {
"coerce" : "false",
"nested_fields" : {
"limit" : "50"
},
"depth" : {
"limit" : "20"
},
"ignore_malformed" : "false"
}
}
},
"mappings" : {
"_source" : {
"enabled" : true
},
"dynamic_templates": [
{
"alert_boject": {
"path_match": "alert.*",
"match_mapping_type" : "*",
"mapping": {
"type": "text"
}
}
}
],
"properties" : {
"application" : {
"index" : "false",
"store" : true,
"type" : "text"
}
}
}
}
Can you please point out or help me figure this out :) ?