I have application that rotates its log files using python file rotation module every hour. Whenever I run filebeat my application crashes with the error 'Cannot Rename: Text File Busy'. I have tried close_* option and different cofigs but nothing is working. Filebeat still has lock on files.
There are lot of thread related to this but I haven't found solution in any of it.
Thanks for reply. I have solved this issue by specifying the option close_eof: true and setting scan_frequency to 10s. Now whenever my application tries to rotate logs there is no read lock on file and it is rotated successfully.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.