Ask Your Question

How to get ElasticSearch's index response

asked 2018-09-06 13:53:30 -0500

leo.wajnsztok gravatar image

I have a pipeline with a ElasticSearch destination to index my records.

I need to get ElasticSearch's response (ex: 'acknowledge': true or false for each indexed record) so I can notify other services that it succeeded or not.

Is it possible with an existing processor/configuration? Is there any "community-created" processor that could help me achieve this behaviour? If not, is it possible by creating a custom processor/destination?

Thanks in advance!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-07 10:32:26 -0500

metadaddy gravatar image

At present, the response from Elasticsearch is not available from the destination - the destination is strictly a record 'sink'. You could look at creating a custom processor based on the Elasticsearch destination. Look at the JDBC Tee processor for a similar example - it writes records to JDBC and adds generated columns to the record.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2018-09-06 13:53:30 -0500

Seen: 132 times

Last updated: Sep 07 '18