Serum IL-10 and free calculated cortisol levels were associated with UTI only after PI (HR [95% CI]: 0.76 [0.61–0.94], 0.32 [0.13–0.77]). Here, IL10 is linked to bacterial urinary tract infection.