extracted number of logs per batch into a constant