Logstash Template Mappings do not have properties like ElasticSearch mappings do. How do I define nested template Mappings for Logstash?
I have a Mapping for elasticsearch like:
"blablabla":{
"type":"object",
"properties":{
"image":{
"type":"object",
"properties":{
"heigth":{"type":"integer"},
"width":{"type":"integer"},
"colorSpace":{"type":"integer"},
"deviceType":{"type":"integer"},
"type":{"type":"integer"},
"dataType":{"type":"integer"},
"length":{"type":"integer"},
"mimeType":{"type":"integer"},
"sourcetype":{"type":"integer"},
"quality":{"type":"integer"}
}
},
"poseAngle":{
"type":"object",
"properties":{
"yaw":{"type":"integer"},
"pitch":{"type":"integer"},
"roll":{"type":"integer"}
}
},
"poseAngleUncertainty":{
"type":"object",
"properties":{
"yaw":{"type":"integer"},
"pitch":{"type":"integer"},
"roll":{"type":"integer"}
}
}
}
}
How does this translate to a Maping for Logstash? If not possible is there another "officially blessed" way to get these kind of template created for newly created indexes?