Application logs rotation issue

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.

Could you please share your Filebeat configuration formatted using </>?

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. :slight_smile:

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