Sun Update Connection - Enterprise 1.0 Administration Guide

Configuring Sun Update Connection – Enterprise to Create Apache Logs

The server application in the system dependency server can create logs for the embedded Apache server. To regulate the size of the Apache-Sun Update Connection – Enterprise logs, go to the logrotate file; controls over these specific logs are not in the uce.rc file.

ProcedureTo Control Apache Sun Update Connection – Enterprise Logs

  1. Check if you have the logrotate file: /etc/logrotate.d/uce_server

    If this file is not on your system, create a new file with this path name.

    If you do not have the logrotate application, use Sun Update Connection – Enterprise to install it on the SDS system. Use a cron job to run the log rotations hourly, or daily.

  2. Open /etc/logrotate.d/uce_server for editing.

    Its content should include:

    /var/log/uce_server/access_log
    /var/log/uce_server/error_log
    /var/log/uce_server/ssl_engine_log
    /var/log/uce_server/ssl_request_log
    {
        rotate 2
        missingok
        size=100M
        compress
        sharedscripts
        postrotate
            /etc/init.d/uce_server graceful
        endscript
    }

    If this content is not in the file, add it.

  3. To have more rotating files, increase the value of the rotate parameter.

  4. To ensure your logs are small, decrease the value of the size parameter.