[SPARK-3562]Periodic cleanup event logs

What is 86400? Could you use `Duration` instead so that it's clearer what the default value means?