Grot is a rotation tool for MySQL binary logs. It connects to the master server, determines a list of currently connected slaves and gathers information about server logs used by them. Then it determines the oldest used log file and purges all logs that precede it.