Log rotation is an automated process that manages log files by moving, renaming, compressing, or deleting them when they reach a certain size or age.