I am using a script/command from Zookeeper, not sure if this will be easy to transform to logrotate.