--max-log-backups does not work for me

Have you used --max-log-backups from the beginning? Or did you add this after you noticed you had numerous log files?

I ask because it may not behave as you expect. I thought it would immediately trim my log history to the max but it does not. It rotates the latest X (25) logs going forward but any beyond that are orphaned.

Could this explain your situation?