# Logstash running as a Service

**URL:** <https://discuss.elastic.co/t/logstash-running-as-a-service/191418>\
**Category:** Logstash\
**Created:** [July 19, 2019, 3:07pm UTC](https://discuss.elastic.co/t/logstash-running-as-a-service/191418 "2019-07-19T15:07:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edster](https://avatars.discourse-cdn.com/v4/letter/e/da6949/32.png) [@edster](https://discuss.elastic.co/u/edster)\
**Post date:** [July 19, 2019, 3:07pm UTC](https://discuss.elastic.co/t/logstash-running-as-a-service/191418/1 "2019-07-19T15:07:03Z")

</div>

Logstash as a service. After the initial pull of data. Does logstash run through each record and updates based on ID? Is this something that takes a long time because it goes through everything that has been pulled?

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [July 19, 2019, 3:16pm UTC](https://discuss.elastic.co/t/logstash-running-as-a-service/191418/2 "2019-07-19T15:16:39Z")

</div>

If you supply the document\_id then elasticsearch will index your logstash document overtop of the existing document, otherwise it will just generate a new \_id and add it on to the index.

---

<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:** [August 16, 2019, 3:16pm UTC](https://discuss.elastic.co/t/logstash-running-as-a-service/191418/3 "2019-08-16T15:16:48Z")

</div>

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