Skip to main content

Removing cpanel log rotation through CLI or API

Comments

5 comments

  • cPanelMichael
    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
  • Oderland David
    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
  • phoenixweb
    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
  • phoenixweb
    I have found this feature request. But it seems not been implemented yet. Any news:
    0
  • cPanelMichael
    [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.