Importing into nested document using logstash


(Aditya8003) #1

How do I feed nested data like the one below using Logstash extracted from a CSV file?

I checked out the below posts but couldnt find a solution built into logstash that helps convert a flat row from a database or an excel sheet into nested JSON that can be fed into elasticsearch.


https://discuss.elastic.co/search?q=import%20into%20nested%20fields

“partterm” : {
“type” : “nested”,
“properties” : {
“amoe” : {
“type” : “text”,
“index” : false
},
“buyersguide” : {
“properties” : {
“P” : {
“properties” : {
“I” : {
“type” : “text”,
“fields” : {
“keyword” : {
“type” : “keyword”,
“ignore_above” : 256
}
}
},
“M” : {
“properties” : {
“FY” : {
“type” : “text”,
“fields” : {
“keyword” : {
“type” : “keyword”,
“ignore_above” : 256
}
}
},
“I” : {
“type” : “text”,
“fields” : {
“keyword” : {
“type” : “keyword”,
“ignore_above” : 256
}
}
},
“MO” : {
“properties” : {
“E” : {
“properties” : {
“I” : {
“type” : “text”,
“fields” : {
“keyword” : {
“type” : “keyword”,
“ignore_above” : 256
}
}
},


(system) #2

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