# Get notification once data indexing is completed using logstash

**URL:** https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893
**Category:** Logstash
**Created:** [September 26, 2017, 6:17pm UTC](https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893 "2017-09-26T18:17:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![surajbs](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@surajbs](https://discuss.elastic.co/u/surajbs)
#### Post date: [September 26, 2017, 6:17pm UTC](https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893/1 "2017-09-26T18:17:08Z")

</div>

HI,

I am trying to get notification once data indexing is completed, so that I can add email plugin to send an email that data indexing is completed.

So I would like to know if logstash log somewhere that data indexing is completed.

Please share your ideas and opinion on this.

Thank you.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [September 26, 2017, 7:12pm UTC](https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893/2 "2017-09-26T19:12:46Z")

</div>

Indexing of what? What's the data source? The typical answer is "no" since Logstash has no idea of knowing when the job is done.

---

<div class="post-metadata">

### Author: ![surajbs](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@surajbs](https://discuss.elastic.co/u/surajbs)
#### Post date: [September 26, 2017, 8:48pm UTC](https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893/3 "2017-09-26T20:48:28Z")

</div>

Hi Magnus,

Thanks for reply.

Actually I am using Logstash-5.4.2 to load the CSV file into Elasticsearch. And I wanted to check if there is any solution that I can get notified when the file gets loaded completely.

Thank you.

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [September 27, 2017, 5:25am UTC](https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893/4 "2017-09-27T05:25:27Z")

</div>

There's nothing built in for that but you can write a simple script that monitors the sincedb file; see [https://stackoverflow.com/a/33146636/414355](https://stackoverflow.com/a/33146636/414355).

---

<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: [October 25, 2017, 5:25am UTC](https://discuss.elastic.co/t/get-notification-once-data-indexing-is-completed-using-logstash/101893/5 "2017-10-25T05:25:32Z")

</div>

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