Applying joins to the data through logstash

I need to apply joins to my documents which are in RDMS while importing them to elasticserch through logstash.

Ok, so what have you tried?

i know how to apply joins directly through curl commands and how to import data from mysql to elasticsearch index.
But no clue how to apply joins directly while transfer.