iterating on months not days in get_logs