Multiline flat json log file to nested json in Elasticsearch

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"
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.