# ElasticSearch plugin which gets invoked after indexing a document

**URL:** <https://discuss.elastic.co/t/elasticsearch-plugin-which-gets-invoked-after-indexing-a-document/28677>\
**Category:** Elasticsearch\
**Created:** [September 4, 2015, 11:54am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-which-gets-invoked-after-indexing-a-document/28677 "2015-09-04T11:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravindhranath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ravindhranath/32/4579_2.png) [@ravindhranath](https://discuss.elastic.co/u/ravindhranath)\
**Post date:** [September 4, 2015, 11:54am UTC](https://discuss.elastic.co/t/elasticsearch-plugin-which-gets-invoked-after-indexing-a-document/28677/1 "2015-09-04T11:54:33Z")

</div>

I am working on developing a plugin which can emit some metrics to one of our metrics storage service. I want this plugin to have access to the document after it gets indexed and use some fields from it to emit metrics (basically calling a web service with the data). The plugin should get invoked immediately (preferably asynchronously) after a document gets indexed. Does ElasticSearch plugin development framework support these requirements? Are there any open source plugins which I can inspire from?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 5, 2015, 11:40pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-which-gets-invoked-after-indexing-a-document/28677/2 "2015-09-05T23:40:27Z")

</div>

Nothing I've seen, because there is nothing internal to ES to call a plugin after a document after it's been indexed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:51pm UTC](https://discuss.elastic.co/t/elasticsearch-plugin-which-gets-invoked-after-indexing-a-document/28677/3 "2017-07-05T23:51:55Z")

</div>


