use head to extract latest log