2

Is it possible to find if. a single attribute is modified in an Elasticsearch document, does Elasticsearch provide me a callback which I can listen to somehow using an internal or an external tool or library. I would like to trigger an action of re-populating another attribute in the same document by making an HTTP call which could be time consuming as well and hence would want to do this in an asynchronous fashion

Any suggestions are really appreciated

Achaius
  • 5,904
  • 21
  • 65
  • 122
  • This answer might help: https://stackoverflow.com/a/51980618/4604579 – Val Jul 21 '20 at 05:52
  • How about using `elastlalert`'s `change` type. This might [help](https://stackoverflow.com/questions/62431835/elastalert-simplified-multiple-rules-in-one-file/62609212#62609212) - not a straight forward answer, but answer provides suggestion about `change` event. – Gibbs Jul 29 '20 at 18:31

1 Answers1

4

As linked in my comment above, there is no such features in Elasticsearch yet, even though the Changes API should provide exactly what you need, but it is still in the works, and there's no known release date yet.

In the meantime, you might be lucky with ForgeRock's Changes Feed Plugin, even though it has a few shortcomings such as the one I've commented about here.

But if you don't have too many nodes and your index doesn't have too many shards, it might work out well for you. According to my tests, you get a constant feed of changes as soon as a document changes.

Val
  • 207,596
  • 13
  • 358
  • 360