modify log tail