adaptive log compression using several similarity functions