Removing cpanel log rotation through CLI or API
Hi,
I've tried to remove the symlink for cpanel log rotation here:
/var/cpanel/log_rotation/cp__apache__error_log.cpanellogd
Which works fine, except that cPanel recreates it during upcp, and then our puppet run removes it again ;)
Is there a better way to remove cpanel log rotation without using WHM? (we don't want to do that on multiple servers)
-
Hello :) To clarify, do you simply want to disable log rotation through the command line like you would with "WHM Home " Service Configuration " cPanel Log Rotation Configuration", or is there a different goal you have? Thank you. 0 -
Hi! Yes exactly Michael, I wish to disable it since we're doing logrotation by ourselves (using rsyslog to write to both remote syslog and to /usr/local/apache/logs/error_log). 0 -
I'm setting up a Central Log Server right now. Did you have any reccomandation? I'm planning to just copy all the syslog to remote rsyslog server. Is it enought or do I have to take special care to some cpanel stuff i don't know? 0 -
[quote="internetfab, post: 1666332">Hi! Yes exactly Michael, I wish to disable it since we're doing logrotation by ourselves (using rsyslog to write to both remote syslog and to /usr/local/apache/logs/error_log).
From what I can tell, you must use the WHM UI to exclude logs from rotation: "WHM Home " Service Configuration " cPanel Log Rotation Configuration" Please feel free to open a feature request for the ability to manipulate this setting through the command line. Thank you.0
Please sign in to leave a comment.
Comments
5 comments