We would like to use watcher's webhook with a bulk request.
For some reasons, we can't use the same data format indicated in the documentation here -- we get a 400 error.
Do you know if it's actually possible to call a bulk request from a webhook action or is there any alternative solution?
Thanks for your reply,
Yes, we indexed many documents at the time in other scenarios but this time
we would like to partially update documents in bulk. I did not think this
was possible with the index action. Is it?
Is there any other way from a watch perspective? Is it possible with a
webhook ? My interrogation is particularly concerning the payload format
expected in bulk requests...
creating the bulk JSON payload in a script transform might be worth a try, however this also sounds somewhat tedious. You can maybe share what you already tried.
Alternatively have you thought about writing the data to logstash via a webhook and then use the logstash http input to read the data, process it via logstash and write it to ES?
Thanks Alexander.
I thought of the transform option but yeah it seemed quite tedious.
I ended up doing something similar to the logstash idea. What I did is sending the data to a webserver, process the data and sending back the data to ES. This seemed like our best alternative.
Thanks again
-Ibrahim
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.