Consuming logs in batch