[SPARK-3562]Periodic cleanup event logs

nit: this line, and the 2 following it, should be indented 2 less spaces.