Join data in two different logs


I have two logs files on remote server. Both those log files have a key that I can join the two log files on.
I want this data to be in elasticsearch as a single document. Can we do this somehow?


Logstash isn't terribly good at this , but maybe the collate filter can help.