Skip to main content
  • Subscribe by RSS
  • ExLibris Dev

    How To Implement Log Rotation for PDS

    • Product: All products using PDS
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local



    On busy servers, PDS log files can grow to large sizes, making them very hard to navigate and eating up free space. One solution for this is to rotate the logs so that they are replaced periodically (usually, hourly or daily).


    As the root user paste into /etc/logrotate.conf the following (you may have to create the file):

    # Logrotate file for pds_log
    <Log directory>/pds_server.log {
            rotate 20
            size 100M

    where <Log directory is the PDS log location, which can be retrieved by typing (as the product user):

    echo $LOGDIR


    After making the changes to the logrotatre.conf file, switch to the product user (i.e., primo, aleph, etc.), then add the following to crontab using crontab -e (edit it to your preference to run hourly or daily):

    12 * * * * /usr/sbin/logrotate -s /tmp/statefile /etc/logrotate.conf > /dev/null 2>&1



    • Article last edited: 21-September-2016
    // feedback widged