how do I use upsert, to create or update entries = documents via the output-plugin to elasticsearch, dependent on the document with the given id is already in elasticsearch or even not.
My data will come from two different logstash-instances A and B and it will not be clear if A comes before B or vice versa. The document-id is clear and known and should be as it is, but all other attributes may be different (disjunct) and should be added to the document.
I tried out with a simple doc_as_upsert statement on B with action = update. This will only work, if B comes after A.
What might be a solution of that ?