Sun Java System Messaging Server 6.3 Administration Guide

25.4.5 Working With Service Logs

This section describes how to work with service logs by using the configutil command for searching and viewing logs. It consists of the following sections:

ProcedureTo Send Service Logs to syslog

  1. Run the configutil command with the syslogfacility option:

    configutil -o logfile.service.syslogfacility -v value

    where service is admin, pop, imap, imta, or http and value is user, mail, daemon, local0 to local7, or none.

    Once the value is set, messages are logged to the syslog facility corresponding to the set value and all the other log file service options are ignored. When the option is not set or the value is none, logging uses the Messaging Server log files.

25.4.5.1 To Disable HTTP Logging

If your system does not support HTTP message access, that is, Webmail, you can disable HTTP logging by setting the following variables. Do not set these variables if your system requires Webmail support (for example, Messenger Express).

ProcedureTo Set the Server Log Level

  1. Run the following configutil command:

    configutil -o logfile.service.loglevel -v level

    where service is admin, pop, imap, imta, or http and loglevel is Nolog, Critical, Error, Warning, Notice, Information, or Debug.

ProcedureTo Specify a Directory Path for Server Log Files

  1. Run the following configutil command:


    configutil -o logfile.service.logdir -v dirpath
    

ProcedureTo Specify a Maximum File Size for Each Service Log

  1. Run the following configutil command:


    configutil -o logfile.service.maxlogfilesize -v size
    

    where size specifies a number of bytes.

ProcedureTo Specify a Service Log Rotation Schedule

  1. Run the following configutil command:


    configutil -o logfile.service.rollovertime -v number
    

    where number specifies a number of seconds.

ProcedureTo Specify a Maximum Number of Service Log Files Per Directory

  1. Run the following configutil command:


    configutil -o logfile.service.maxlogfiles -v number
    

    where number specifies the maximum number of log files.

ProcedureTo Specify a Storage Limit

  1. Run the following configutil command:


    configutil -o logfile.service.maxlogsize -v number
    

    where number specifies a number in bytes.

ProcedureTo Specify the Minimum Amount of Free Disk Space to Reserve

  1. Run the following configutil command:


    configutil -o logfile.service.minfreediskspace -v number
    

    where number specifies a number in bytes.

25.4.5.2 To Specify an Age for Logs at Which They Expire


configutil -o logfile.service.expirytime -v number

where number specifies a number in seconds.