[SPARK-3562]Periodic cleanup event logs

link #2391 
You can't just remove the existing setting. You need to still read it for backwards compatibility.