I am new in Elasticsearch and logstash and I have an issue with nested objects. So what I want to ask is how can I create index with multiple nested fields inside another nested fields.
How can I build the data inside logstash file configuration from data from postgres to index something like below inside elasticsearch?
For example, I have a Product which have raw materials and raw materials have substances
product {
id: 1,
name: "name",
raw_materials: [{
id: 1,
name: "raw_name",
substances: [{
id: 1,
name: "sub_name",
}]
}]
}
Help me please