Aggregate similar log file entries matching a search pattern