1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

logrotation not configured for new subscriptions

Discussion in 'Plesk 11.x for Linux' started by wombat, Jul 3, 2012.

  1. wombat

    wombat Guest

    0
     
    hi!

    i have logrotation set up and it's working on most of my subscriptions. but for some reason some subscriptions won't get rotated. there is no configuration file in /opt/psa/etc/logrotate.d for this domains. when i check them in the admin panel i can see that logrotation is activated. sometimes a configuration file will be generated if i de- and reactivate logrotation for them.

    am i missing something? does there have to be traffic on the site to generate the logfile? any other hints?

    regards,
    andreas
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,572
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to use CLI utility 'domain' for enabling logrotation for domains and look at output.

    # /usr/local/psa/bin/domain --help | grep log-
    -log-rotate <true|false> Log rotation status (default: true)
    -log-bysize <number>[B|K|M|G] Log rotation by size in bytes
    -log-bytime <daily|weekly|monthly> Enables log rotation by time (default:
    -log-max-num-files <number> Maximum number of log file instances
    -log-compress <true|false> Log files compression (default: true)
    -log-email <email> Switches on sending log files to
     
Loading...