processing batch each 50000 logs