Rclone and logrotate

Hi, a bit on the side, but I’m having problems with big log files, and would like to use logrotate to solve that issue.

I have set up log rotate to rotate files, and that works fine. The problem is that the new file is not written to. rclone is running fine, but it’s not writing logs anywhere.

The logfile is located on a NFS mounted path.

This is my logrotate conf:

/path/to/rclone.log {
  rotate 7
  daily
  compress
  missingok
  notifempty
}

Any idea how to solve this?

rclone doesn’t work with logrotate at the moment. If you make a new issue on github then I can look into it.

1 Like

Thanks for the reply.

I made a new issue here: https://github.com/ncw/rclone/issues/2259

1 Like

@ncw, has logrotate been integrated yet?
If not, is there some kind of workaround we can use instead?

Thanks! :slight_smile:

Please check the issue rather than bumping a year old post.