# Pipeline terminated {"pipeline.id"=\>".monitoring-logstash"} after processing existing docs in the index

**URL:** https://discuss.elastic.co/t/pipeline-terminated-pipeline-id-monitoring-logstash-after-processing-existing-docs-in-the-index/223401
**Category:** Logstash
**Created:** [March 12, 2020, 7:25pm UTC](https://discuss.elastic.co/t/pipeline-terminated-pipeline-id-monitoring-logstash-after-processing-existing-docs-in-the-index/223401 "2020-03-12T19:25:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ilya\_Libin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ilya_libin/32/48935_2.png) [@Ilya\_Libin](https://discuss.elastic.co/u/Ilya_Libin)
#### Post date: [March 12, 2020, 7:25pm UTC](https://discuss.elastic.co/t/pipeline-terminated-pipeline-id-monitoring-logstash-after-processing-existing-docs-in-the-index/223401/1 "2020-03-12T19:25:44Z")

</div>

Hi! I'm running Elasticsearch and Logstash locally, trying to set up a pipeline that will process all ongoing events from Elasticsearch and write it to stdout (for POC). However after the dockerized logstash is up it takes all existing documents process it and then shutting down.  
Is it possible to keep it alive to process all upcoming documents? I saw that the plugin supports the schedule. Is it basically long polling my index? Can it "catch" all the new documents instead? in a listener mode?  
Here is my pipeline:

```
input {
  elasticsearch {
      hosts => ["docker.for.mac.localhost:9200"]
      index => "test_index"
  }
}
output {
   stdout { codec => rubydebug }
}
```

---

<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: [April 9, 2020, 7:25pm UTC](https://discuss.elastic.co/t/pipeline-terminated-pipeline-id-monitoring-logstash-after-processing-existing-docs-in-the-index/223401/2 "2020-04-09T19:25:50Z")

</div>

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