I have a multiline json log file , which flat .but my template in the Elastic search has nested fields . i am using logstash to send to elastic search .
ex
my log file
{"appname":"test1","level":"1","version":"v1"}
{"appname":"test2","level":"1","version":"v1"}
my template
{
"application": {
"properties": {
"name": {
"type": "text"
},
"version": {
"type": "text"
},
"level": {
"type": "keyword"
}
}
}