The rumen microbiota contributed to the development of mastitis induced by subclinical ketosis.