# 【filebeat output.file】when the output filebeat has been deleted，it wont be created agian automatically

**URL:** <https://discuss.elastic.co/t/filebeat-output-file-when-the-output-filebeat-has-been-deleted-it-wont-be-created-agian-automatically/183675>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 31, 2019, 7:41am UTC](https://discuss.elastic.co/t/filebeat-output-file-when-the-output-filebeat-has-been-deleted-it-wont-be-created-agian-automatically/183675 "2019-05-31T07:41:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![liyihan093730](https://avatars.discourse-cdn.com/v4/letter/l/f07891/32.png) [@liyihan093730](https://discuss.elastic.co/u/liyihan093730)\
**Post date:** [May 31, 2019, 7:41am UTC](https://discuss.elastic.co/t/filebeat-output-file-when-the-output-filebeat-has-been-deleted-it-wont-be-created-agian-automatically/183675/1 "2019-05-31T07:41:42Z")

</div>

when I using filebeat to filter log files and output the contents to a new file(all function is carried by filebeat souce code), I found when I delete the output file, it wont be created again, even I touch a file in the same path with same name, filebea wont write the filtering content to the new file. I found it may be the origin output file may be registered in the process. Could anyone solve this problem for me or show me which function in source code be in charge of this, tks

---

_[View the full topic](https://discuss.elastic.co/t/filebeat-output-file-when-the-output-filebeat-has-been-deleted-it-wont-be-created-agian-automatically/183675)._
