Configuring Sun Java System Messaging Server Log File RotationAnthony Waldron, October 2007 Sun Java System Messaging Server provides logging facilities for the Messaging Server MTA, the Message Store, and services. The logging facilities provide you with time-stamped and labeled information about your system's messaging services. Using log files, you can gather message statistics, perform trend determination, troubleshoot problems, and so forth. While the system performs automatic rollovers to maintain the current log file, you must determine and manage log file rotation aspects such as how large a single log file may be, how large cumulative log files may be, how many log files to retain, and so forth. This article focuses on configuring log file rotation for the Messaging Server service logs, such as the IMAP service. For more information on managing Messaging Server log files, see Chapter 25, Managing Logging, in the Sun Java System Messaging Server 6.3 Administration Guide. Log File ParametersThe following
where
You use the
which sets the maximum size of an IMAP service log file to 1 Gbyte. Log File ExamplesIf the conditions at your site meet any one of the above controls,
then the system rolls over the log
file. Therefore, based on your site's traffic usage, you can set three
of these
For example, most sites want to retain logs covering specific time
periods or time spans, say one week. In order to keep a week's
worth of data, set the
For instance, with the 1 Gbyte limit, you could rotate the files
each hour (the rollover time is in seconds, so this is 3600 seconds) and
just keep 168 copies of those individual files. Your
Such settings give you 168 hours (7 days) worth of service log files which are at most 1 Gbyte in size. For VERY_BIG_NUMBER, start with 180388626432 (168 x 1073741824). Use your own custom settings if you prefer smaller log files, quicker log file rollover, and so forth. For example, you will get 336 log files if you set the rollover time to 1800 seconds, or each 30 minutes.
Note: Setting the following
For More InformationSee the BigAdmin Communications Suite Hub for more information about Sun Java Communications Suite. Here are additional resources:
Comments (latest comments first)Discuss and comment on this resource in the BigAdmin Wiki
Unless otherwise licensed, code in all technical manuals herein (including articles, FAQs, samples) is provided under this License. |
BigAdmin SubscriptionsBigAdmin Areas
BigAdmin Sun Center
BigAdmin Topics | ||||