# How to implement post action after data loaded to index?

**URL:** <https://discuss.elastic.co/t/how-to-implement-post-action-after-data-loaded-to-index/220058>\
**Category:** Logstash\
**Created:** [February 19, 2020, 8:24pm UTC](https://discuss.elastic.co/t/how-to-implement-post-action-after-data-loaded-to-index/220058 "2020-02-19T20:24:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbond](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jbond](https://discuss.elastic.co/u/jbond)\
**Post date:** [February 19, 2020, 8:24pm UTC](https://discuss.elastic.co/t/how-to-implement-post-action-after-data-loaded-to-index/220058/1 "2020-02-19T20:24:13Z")

</div>

I am using logstash to load data from DB to ES index. Everything works. Now after the data loaded is completed, I want to run some post actions such as put the index in an alias, run some elastic search DSL query, get the count of index, send an email etc. How do I achieve it in one config file?

---

<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:** [March 18, 2020, 8:24pm UTC](https://discuss.elastic.co/t/how-to-implement-post-action-after-data-loaded-to-index/220058/2 "2020-03-18T20:24:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
