Upsert with logstash

Hello,
The only way I found to fill in the upsert field in elasticsearch output is to use the json_encode filter. This creates a string that I pass in the upsert.

Hope it can help someone...