SELECT count(0),TO_STRING(TO_LOCALTIME(time), 'yyyy-MM-dd HH') FROM '[LOGFILEPATH]' group by TO_STRING(TO_LOCALTIME(time), 'yyyy-MM-dd HH')