title: Logstash locks the Log file
body: <p>I am stashing the log files of database to elasticsearch using Logstash.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>I can only make changes, when I forcefully stop the service of logstash. Can anyone give me a solution for this issue?</p>
  
  <p>Thanks,
  Vijay</p>