# Logstash debug file is not created after deletion

**URL:** <https://discuss.elastic.co/t/logstash-debug-file-is-not-created-after-deletion/46571>\
**Category:** Logstash\
**Created:** [April 6, 2016, 4:45pm UTC](https://discuss.elastic.co/t/logstash-debug-file-is-not-created-after-deletion/46571 "2016-04-06T16:45:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vilas/32/613_2.png) [@vilas](https://discuss.elastic.co/u/vilas)\
**Post date:** [April 6, 2016, 4:45pm UTC](https://discuss.elastic.co/t/logstash-debug-file-is-not-created-after-deletion/46571/1 "2016-04-06T16:45:41Z")

</div>

Hi,

We are currently working on Logstash 1.5.4.  
We enabled the logstash debug, using -l option creating the debug log file. But we observed that it grew large in size and so deleted the debug file. But Logstash is not creating a new debug file.  
Is it how the Logstash supposed to work?  
It creates a new Logstash debug file, when we restart the Logstash. But can't it create one without restarting Logstash.

Thanks.

---

<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:** [April 13, 2016, 3:48am UTC](https://discuss.elastic.co/t/logstash-debug-file-is-not-created-after-deletion/46571/2 "2016-04-13T03:48:23Z")

</div>

Logstash's logrotate config (as shipped in the Debian package) looks like this:

```auto
/var/log/logstash/*.log /var/log/logstash/*.err /var/log/logstash/*.stdout {
        daily
        rotate 7
        copytruncate
        compress
        delaycompress
        missingok
        notifempty
}

```

This works, so maybe Logstash detects and acts on copy/truncate rotations but not rename ones?

---

<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:** [July 6, 2017, 5:02am UTC](https://discuss.elastic.co/t/logstash-debug-file-is-not-created-after-deletion/46571/3 "2017-07-06T05:02:38Z")

</div>


