# Logstash Opening file only on quit

**URL:** <https://discuss.elastic.co/t/logstash-opening-file-only-on-quit/154234>\
**Category:** Logstash\
**Created:** [October 26, 2018, 3:39pm UTC](https://discuss.elastic.co/t/logstash-opening-file-only-on-quit/154234 "2018-10-26T15:39:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)\
**Post date:** [October 26, 2018, 3:39pm UTC](https://discuss.elastic.co/t/logstash-opening-file-only-on-quit/154234/1 "2018-10-26T15:39:48Z")

</div>

Very strange thing is happening.  
Logstash is being launched with the following command:

logstash -f /tmp/my\_config.yml  
sincedb\_path -\> set to /dev/null

Input file is being generated- nothing happens.  
Input file is being modified- nothing happens  
I manually modify file- nothing happens

BUT, when I press CTRL+C I get the following info:

observingtail - QUIT 0 closing all files and shutting down.  
[...]  
file - Opening file {:path =\> "/tmp/input.json.log"} . \<-- this is my log file defined in the YML..  
aaaand then the data is being read and saved to the ES node....

Any ideas?

---

<div class="post-metadata">

**Author:** ![wheelq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wheelq/32/35893_2.png) [@wheelq](https://discuss.elastic.co/u/wheelq)\
**Post date:** [October 31, 2018, 12:52pm UTC](https://discuss.elastic.co/t/logstash-opening-file-only-on-quit/154234/2 "2018-10-31T12:52:56Z")

</div>

Fixed. Resolved as a part of another issue: [The shutdown process appears to be stalled due to busy or blocked plugins](https://discuss.elastic.co/t/the-shutdown-process-appears-to-be-stalled-due-to-busy-or-blocked-plugins/154257)

---

<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 28, 2018, 12:53pm UTC](https://discuss.elastic.co/t/logstash-opening-file-only-on-quit/154234/3 "2018-11-28T12:53:16Z")

</div>

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