is there a possibility to update a document if id matches else insert ?
Alright i'm reading a kafka topic and this a sample of my topic
`
> "schema":{"type":"struct","fields":[{"type":"string","optional":true,"field":"name"},{"type":"string","optional":true,"field":"season"},{"type":"string","optional":true,"field":"id"}],"optional":false,"name":"mongo_conn.test.testCollection"},"payload":{"name":"aothertest","season":"reallyweird","id":"5d0a2a75baff7c1e89ef44d3"}}
`
ps: all i need is found under payload [name,season,id]
and this is my logstash input
input { kafka { bootstrap_servers => "localhost:9092" topics => "mongo_conn.test.testCollection" auto_offset_reset => "earliest" codec => json{} } }
for example incase if payload.id matches a already existing payload.id , update the document