# Stop file ingestion without stopping Logstash

**URL:** <https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449>\
**Category:** Logstash\
**Created:** [October 26, 2017, 4:07pm UTC](https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449 "2017-10-26T16:07:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![udaykirankona](https://avatars.discourse-cdn.com/v4/letter/u/ac91a4/32.png) [@udaykirankona](https://discuss.elastic.co/u/udaykirankona)\
**Post date:** [October 26, 2017, 4:07pm UTC](https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449/1 "2017-10-26T16:07:21Z")

</div>

Hi Guys,

Is there any way to stop particular file ingestion without stopping logstash service.

Thanks,  
Uday.K

---

<div class="post-metadata">

**Author:** ![Jack\_Judge](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_judge/32/85499_2.png) [@Jack\_Judge](https://discuss.elastic.co/u/Jack_Judge)\
**Post date:** [October 26, 2017, 6:01pm UTC](https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449/2 "2017-10-26T18:01:58Z")

</div>

Remove the file it's ingesting ?

---

<div class="post-metadata">

**Author:** ![udaykirankona](https://avatars.discourse-cdn.com/v4/letter/u/ac91a4/32.png) [@udaykirankona](https://discuss.elastic.co/u/udaykirankona)\
**Post date:** [October 27, 2017, 6:47am UTC](https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449/3 "2017-10-27T06:47:39Z")

</div>

Hi Jack,  
Thanks for your reply, even I remove the file which is ingesting. still files data will be in memory, so it will continue the ingestion.  
Is there any way to clean the memory of particular file.

Thanks,  
Uday.K

---

<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:** [October 27, 2017, 6:53am UTC](https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449/4 "2017-10-27T06:53:55Z")

</div>

> Thanks for your reply, even I remove the file which is ingesting. still files data will be in memory, so it will continue the ingestion.

For a few seconds yes (depending on the discover interval), but hardly forever.

> Is there any way to clean the memory of particular file.

No.

If you explain what end goal you're trying to reach maybe we can make a suggestion.

---

<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:** [November 24, 2017, 6:54am UTC](https://discuss.elastic.co/t/stop-file-ingestion-without-stopping-logstash/105449/5 "2017-11-24T06:54:06Z")

</div>

Closed on November 24, 2017, 6:54am UTC

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