Logstash locks the log file


I am stashing the log files of database to elasticsearch using Logstash.

When I try to stash the log files, logstash reads the file to process the lines. While reading, logstash locks the file and it does not allow others to make any changes to the content.

Even after all the log lines are read and there are no more lines to read, the file is still locked for logstash and I could not do any changes to the content or add more lines to it.

I can only make changes, when I forcefully stop the service of logstash. Can anyone give me a solution for this issue?


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