System Logs
In many cases it is useful to log system messages from scripts. The System Logs option
provides a method for controlling syslogd, system logging daemon, that is used on most
Unix system to provide standard logging functions. You can configure existing
and add new system logs via CP+.
Configuring Existing System Logs
To configure system logging:
- Log into CP+ at http://cpplus_host:10000/ as admin with your server root password:
- Go to the System Administration CP+ mode and
click the System Logs icon in the Server Management section.
- You will see a list of all currently existing logs.

- Click the Log destination link to edit the log file properties;
- Click view to set a configurable number of lines and view the lines listed from the end of the log file;
- Active section shows if the system log is activated;
- Messages selected shows type of message logged.
- To add a new system log, click Add a new system log.
Adding a System Log
Once you clicked the Add a new system log link, you will see the following form to be filled:

- The Log to option configures the destination of the log file: a file, a named pipe,
a remote syslog server, or to the console of some or all local users.
- Checking the Sync after each message? option will cause the syslog daemon to flush to disk after every entry
overriding the disk I/O buffering provided by the OS.
- Logging active?: if disabled, log is simply commented out in the /etc/syslog.conf file
with a hash mark, so the configuration details remain in the file even though it is no longer an active logging entry.
- Facilities specify the type of program generating the log, such as mail, daemon, cron or
locally definable facilities, named local0 through local7.
- Priorities show the level of message on a scale of debug to emergency.
Once you configured a new system log, click Save on the System Logs page to preserve settings.
Don't forget to click Apply changes to make sure your settings have been applied.
|