[SPARK-3562]Periodic cleanup event logs

nit: `if (`

Also, conf option should start with `spark.history.fs.`.