You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by 海天 <zh...@163.com> on 2016/04/27 05:39:42 UTC

flume 1.6 with logrotate lose data

Hello, 
      I use flume 1.6 execsource with command : tail -F /opt/log/web.log, but the log execute logrotate  periodicity ,the logrotate conf is copy-truncate. Then flume  always get data lost about 1 second every time logrotate is executed. How can I do?
Here is logrotate conf:
/opt/log/web.log {
   nocompress
   daily
   copytruncate
   create
   ifempty
   noolddir
   rotate 3
}




Vincent Shao