I’ve attempted the haproxy logrotate task at least 3 times and failed every time even though it’s working correctly when I test it. In my latest attempt I asked for a review and was told that it has validation errors. Can this task either be fixed or removed from the rotation?
even i tried all the possibility for this haproxy logratate, but it doesn’t work .Team should remove this task
hey
You guys, there are 2 impoortant steps:
- install, enable and start the application requiered (httpd, haproxy or whatever)
- add the lines with periodicity (monthly, yearly, weekly, etc.) , rotation frequency (rotate 3, let´s say) into the correspondent file in /etc/logrotate.d/… (httpd or haproxy) and test it
logrotate -vf /etc/logrotate.d/…
ls /var/log/…/
And, of course, do it on all 3 app servers
Yes, I’ve done those steps every time exactly and it always fails validation for haproxy. I requested a review and got a retry using httpd instead and it worked perfectly.