This study aimed to elucidate the effects of long day and night shifts on immune cells in a population of nurses. This cross-sectional study in December 2019 was based on a group of nurses. 1568 physically healthy caregivers were included, including 1540 women and 28 men. 1093 nurses had long-term shift work (working in a rotating system for > 1 year). The receiver operating characteristic curve, Ensemble Learning, and Logistic regression analyses were used to evaluate factors related to long-term shift work. The night shift group nurses had significantly higher MPV, PLCR, and WBC and significantly lower BASO%, ELR, MCHC, PLR, RDW-CV, and RDW-SD (P < 0.01). ROC curves showed that WBC, PLR, ELR, RDW_CV, and BASO% were more related to the night shift. Ensemble Learning, combined with the LASSO model, finally filtered out three indicators of night shifts related to ELR, WBC, and RDW_SD. Finally, logistic regression analysis showed that the nurses’ night shift situation greatly influenced two peripheral blood ELR and WBC indicators (ELR: log (OR) = − 3.9, 95% CI: − 5.8– − 2.0; WBC: log (OR) = 0.25, 95% CI: 0.18–0.32). Finally, we showed that, unlike WBC, the relative riskiness of ELR showed opposite results among junior nurses and middle-senior nurses (log (OR) 6.5 (95% CI: 1.2, 13) and − 7.1 (95% CI: − 10, − 3.8), respectively). Our study found that prolonged night shifts were associated with abnormal WBC and ELR, but after strict age matching, WBC remained significantly different. These findings help to confirm that COVID-19 and tumorigenesis (e.g., breast cancer) are significantly associated with circadian rhythm disruption. However, more detailed studies are needed to confirm this.