[How To] Change the log rotation settings for Plesk Action Log

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 12:42:44 UTC

Modified:

2016-12-21 19:02:07 UTC

0

Was this article helpful?


Have more questions?

Submit a request

[How To] Change the log rotation settings for Plesk Action Log

Symptoms

How to change the log rotation settings for Plesk Action log ( Tools & Settings > Panel ) using command line utilities?

http://kb.plesk.com/Attachments/kcs-10467/Action%20log%20settings.png

Resolution

There is no command-line utility to manage Action Log settings. You will need to update psa.misc table in Plesk configuration database :

  • If it is needed to switch to...

    • X days:

      replace into misc (param, val) values('actionlog_rot_type', 'by_period');
      replace into misc (param, val) values('actionlog_rot_period', 'day');
      replace into misc (param, val) values('actionlog_rot_num_periods', 'X');
    • X weeks:

      replace into misc (param, val) values('actionlog_rot_type', 'by_period');
      replace into misc (param, val) values('actionlog_rot_period', 'week');
      replace into misc (param, val) values('actionlog_rot_num_periods', 'X');
    • X month:

      replace into misc (param, val) values('actionlog_rot_type', 'by_period');
      replace into misc (param, val) values('actionlog_rot_period', 'month');
      replace into misc (param, val) values('actionlog_rot_num_periods', 'X');
  • If it is needed to have X entries:

    replace into misc (param, val) values('actionlog_rot_type', 'by_number');
    replace into misc (param, val) values('actionlog_rot_period', '');
    replace into misc (param, val) values('actionlog_rot_num_periods', '');
    replace into misc (param, val) values('actionlog_rot_num_records', 'X');
  • For "do not remove records" option:

    replace into misc (param, val) values('actionlog_rot_type', 'forever');
    replace into misc (param, val) values('actionlog_rot_period', '');
    replace into misc (param, val) values('actionlog_rot_num_periods', '');
    replace into misc (param, val) values('actionlog_rot_num_records', '');
Have more questions? Submit a request
Please sign in to leave a comment.