# \[BUG\] Logstash's temp file auto remove fail

**URL:** <https://discuss.elastic.co/t/bug-logstashs-temp-file-auto-remove-fail/90800>\
**Category:** Logstash\
**Created:** [June 26, 2017, 9:18am UTC](https://discuss.elastic.co/t/bug-logstashs-temp-file-auto-remove-fail/90800 "2017-06-26T09:18:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maddison](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@maddison](https://discuss.elastic.co/u/maddison)\
**Post date:** [June 26, 2017, 9:18am UTC](https://discuss.elastic.co/t/bug-logstashs-temp-file-auto-remove-fail/90800/1 "2017-06-26T09:18:13Z")

</div>

Please post all product and debugging questions on our [forum](https://discuss.elastic.co/c/logstash). Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.

For all general issues, please provide the following details for fast resolution:

- Version: logstash:5.4.1, output-s3: 4.07

- Operating System: ubuntu or docker image:5.4.1

- Config File (if you have sensitive info, please remove it):  
input {  
beats {  
port =\> 5002  
}  
}

output {  
s3 {  
access\_key\_id =\> "xxx"  
secret\_access\_key =\> "xxx"  
region =\> "xxx"  
bucket =\> "my-logstash-log"  
size\_file =\> 10485760  
time\_file =\> 30  
codec =\> line  
prefix =\> "myAPI/%{+YYYY-MM-dd}"  
encoding =\> "none" #none or gzip  
restore =\> "false"  
}  
}

- Sample Data:  
none.

- Steps to Reproduce:  
By using this config , I found there files was locked by logstash when day change.  
So I got a lot of tmp file folder that didn't remove correctly in the /tmp/logstash/xxxxxxx .

How to resolve this problem?

---

<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 24, 2017, 9:18am UTC](https://discuss.elastic.co/t/bug-logstashs-temp-file-auto-remove-fail/90800/2 "2017-07-24T09:18:22Z")

</div>

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