title: Filebeat prevents python rotating log from rotating files in windows os
body: <p>Environment:
  win 10
  python 2.7
  Filebeat 5.1.1</p>
  
  <p>My application writes logs with Rotating log handler. When I start Filebeat I start getting the following exceptions from logging lib.</p>
  
  <pre><code>Traceback (most recent call last):
  File “C:\Anaconda2\Lib\logging\handlers.py”, line 77, in emit
     self.doRollover()
  File “C:\Anaconda2\Lib\logging\handlers.py”, line 142, in 
  doRollover
     os.rename(self.baseFilename, dfn)
  WindowsError: [Error 183] Cannot create a file when that file already 
  exists
  </code></pre>
  
  <p>How can I resolve it?</p>