Compost bedded pack barns (compost) as a new free walk housing system favorably influence udder health due to improved animal welfare and lying comfort. On the other hand, unfavorable effects on udder health are possible, due to the open bedded pack and the associated larger bacterial content in moisture. For in-depth farming system comparisons, the present study aimed to evaluate the specific cell fractions and mastitis pathogens in milk from cows kept in compost and in conventional cubical barns (cubicle). For milk sample collection we used a repeated measurement data structure of 2,198 udder quarters from 537 Holstein cows kept in six herds (3 in compost and 3 in cubicle). Differential cell counting was conducted including lymphocytes, macrophages and polymorphonuclear leukocytes (PMN). Specific mastitis pathogens comprised major and minor pathogens. Mixed models were applied to infer environmental and cow associated effects on cell fractions and on prevalences for pathogen infections, with specific focus on system × lactation stage, system × milk yield and system × somatic cell count effects. The interaction between system and lactation stage showed significant differences (P < 0.01) between the systems. A significantly smaller number of bacteriologically positive quarters and lower prevalences for minor pathogens were detected in compost compared to cubicle. Least squares means for pathogen prevalences indicated a quite constant proportion of bacteriologically negative udder quarters across milk yield levels in compost, but a slight increase with increasing milk yield in cubicle. Cell fraction responses in both systems differed in relation to the overall bacteriological infection status and farming system particularities. In conclusion, different cell fractions and specific mastitis pathogens should be considered as an indicator for udder health in different production systems, taking into account cow associated factors (lactation stage, milk yield).