Best practice for denormalize Relational database table to Elasticsearch

Greeting everybody.
How I can denormalize MongoDB(normalize) collections that have relation between collections (joined) and insert it to Elasticsearch (denormalized data)?
For now I have an simplest ways is Create API that perform aggrwgation lookup in MongoDB and return all data in REST API then Logstash going to retrive data from that API.
This is the simplest ways that I can thonk about it.
Is it have another way? Or perhaps I can perform MongoDB query on Logstash ?
Thank you very muxh for your answer :slight_smile:

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