update log statistic script