Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Rotating Log Files

    Logrotate is a log file management utility that allows you to manage the large number of log files the SRC software generates. Logrotate is essential for managing the disk space on the C Series Controller.

    The following SRC components support the logrotate utility:

    • Third-Generation Partnership Project (3GPP) gateway
    • 3GPP Gy
    • SRC Admission Control Plug-in (ACP)
    • Activity Monitor
    • SNMP agent
    • Web application server
    • Command-line interface (CLI)
    • Diameter server
    • Dynamic Service Activator
    • IP Multimedia Subsystem (IMS)
    • Juniper Policy Server (JPS)
    • License server
    • Monitoring Agent application
    • Network information collector (NIC)
    • Service activation engine (SAE)
    • Subscriber information collector (SIC)
    • Session State Registrar (SSR)
    • C-Web interface

    You can use logrotate to regularly rotate log files by removing the oldest log files from your system and creating new log files. You can rotate files based on size. You can rotate log files daily, weekly, or monthly. Logrotate can also be used to compress log files. Logrotate usually runs automatically through the Cron utility.

    When a new log file is opened to replace an older log file that contains content, a number is appended to the name of the older file. For example, sae_debug.log.4 is an older log file than sae_debug.log.1; whereas sae_debug.log is the active log file for SAE.

    On C Series Controllers, the software compresses log files and appends the .gz suffix; for example, sae_debug.log.4.gz. Log files are stored in the /opt/UMC/component-name/var/log directory; for example, /opt/UMC/sae/var/log.

    You can configure components to send log messages to the system log server on the platform on which the SRC software is running.

    If you plan to filter log messages, you should be familiar with severity levels and filters for logging before you configure system logging for a component.

    Configuration Overview

    You can specify any number of log rotation configuration files on the command line. Configuration options that you specify for a group of log files are considered local options and they override global options of the same name.

    Both global and local options can be set in the /etc/logrotate.conf file. You set global options under the [edit system logrotate logrotate.conf] hierarchy level. You set local options for specific logging configuration files such as the /var/log/wtmp file under the [edit system logrotate logrotate.conf logfiles name] hierarchy level. You can also configure log rotation for system and SRC components under the [edit system logrotate file-name logfiles] hierarchy level.

    Modified: 2015-06-22