[SPARK-3562]Periodic cleanup event logs

link #2391 
This comment says the same thing as the comment above.