I've got some terribly nested log messages in JSON format. Somehow elasticsearch keeps mapping one of the field as text eventough it contains several subfields. Is there something wrong with my mapping ?
Message in Kibana:
Message as JSON (in Kibana)
{
"index_patterns": "azure-*",
"version": 0,
"mappings": {
"doc": {
"properties": {
"records": {
"type": "nested",
"properties": {
"requestbody": {
"properties": {
"properties": {
"properties": {
"encryption": {
"properties": {
"keySource": {
"type": "keyword"
},
"keyvaultproperties": {
"properties": {
"keyversion": {
"type": "keyword"
},
"keyname": {
"type": "keyword"
},
"keyvaulturi": {
"type": "keyword"
}
}
},
"services" : {
"properties":{
"blob" : {
"properties": {
"enabled":{
"type": "boolean"
}}},
"file" : {
"properties": {
"enabled":{
"type": "boolean"
}}}
}
}
}
}
}
}
}
},