Statistic log analysis script