Application logs rotation issue

(Waseem Anjum) #1

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.

(Noémi Ványi) #2

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

(Waseem Anjum) #3

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:

(system) closed #4

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