#!/sbin/sh # (C) Copyright 2005, 2006 Hewlett-Packard Development Company, L.P. # # Name: # /etc/rc.config.d/syslog-ng # # Description: # This configuration file is used by /sbin/init.d/syslog-ng and other # Consolidated Logging (clog) components of the Distributed Systems # Administration Utilities (DSAU). syslog-ng or syslog "next # generation" is used by DSAU for log forwarding and log # consolidation. For more information on syslog-ng, please refer to the # syslog-ng man page. # # For the majority of configuration items in this file, it is best to # configure then using the Consolidated Logging Wizard. See the # clog_wizard man page. # # Note that the variables marked with an asterisk (*) directly change # the run-time behavior of the component at system startup. The other # variables are a record of the administrator's responses when running # the clog_wizard. You must re-run the wizard in order to change # them. # # Configuration Variables: # # General variables: # * CLOG_CONFIGURED=[0|1] - If 1, this system is configured as a log # forwarder or log consolidator. syslog-ng # should be started. # # CLOG_CONSOLIDATOR=[0|1] - If 1, this system is configured as # a log file consolidator. Remote clients # forward log messages to this system # If 0 and CLOG_CONFIGURED=1, we are a # log forwarder. # # CLOG_SYSLOG=[0|1] - If 1, when a log forwarding client # forward syslog messages to the log # consolidator. Note that the DSAU # tools allow arbitrary text based # log files to be forwarded in addition # to syslog. # If 1, when a log consolidator, then # consolidate your local syslog logs # into the consolidated log. # # CLOG_FS= - When a consolidation server, then # the directory where the consolidated logs # are located. The wizard uses this # value when generating a # syslog-ng.conf.server file. # # * CLOG_PREV_OLDSYSLOGNG_LINES= # - The number of lines (in thousands) to # preserve from the current OLDsyslog-ng.log # when archiving the most recent # syslog-ng.log. This log contains messages # that are internally generated by syslog-ng. # At startup, the last N thousand lines of # OLDsyslog-ng will be preserved and the last # syslog-ng.log file will appended to the this # file. The default is 0 which means no old # lines are preserved and the last # syslog-ng.log is renamed to # OLDsyslog-ng.log # # # Log transport variables: # CLOG_TCP=[0|1] - If 1, use syslog-ng's TCP transport. Else # use UDP. # # CLOG_TCP_PORT= - IF CLOG_TCP=1, use this TCP port number. # This must be a free port on both # the log forwarder clients and the # consolidation server. # # CLOG_SSH=[0|1] - If 1, use SSH port forwarding to encrypt # all TCP-based log traffic. This applies to # the the TCP transport only. # # CLOG_SSH_PORT= - If CLOG_SSH=1, the port number to use # for SSH port forwarding. This must # be a free port available on every log # forwarding client. # # Serviceguard cluster variables: # Note: In a cluster, syslog-ng is configured as a package in order to # provide a highly available consolidated logging service. # These variables are not used in non-cluster environments. # # CLOG_PKG_VOL_GRP= - LVM volume group to use for the package. # # CLOG_PKG_LOG_VOL= - LVM logical volume for the package. # # CLOG_PKG_FS= - Mount point for the package's filesystem. # # CLOG_PKG_MNT_OPT= - Mount options for the filesystem. # # CLOG_PKG_FS_TYPE= - Filesystem type. # # CLOG_PKG_IP= - Relocatable IP address for the package. # Since remote clients will use this # address, it should be a registered # DNS name as well. # # CLOG_PKG_SUBNET - The network subnet for the IP address # (see netstat -i). # # * CLOG_PKG_RETRY_TIMES= - Number of times the # syslog-ng process monitor # checks for the presence # of the process before # declaring it failed. The # default is 2. # # * CLOG_PKG_MONITOR_INTERVAL= - Frequency with which to check # the process. The default # is every 5 seconds # # CLOG_PACKAGE=[0|1] - If 1, consolidate all Serviceguard # package logs. # # CLOG_SYSTEM_LOG_CONSOLIDATION_DIR= # - The directory to place consolidated # syslogs. For example, this variable could # be /clog/syslog/ # # CLOG_SERVICEGUARD_PACKAGE_LOG_CONSOLIDATION_DIR= # - The directory to place conslidated # Serviceguard package logs. For example, if # this variable could # be /clog/packages/ # # System Management Homepage Log Viewer variables: # * CLOG_LAYOUTS_DIR= - Directory containing log file # layout descriptions. Used by the # viewer to process custom log # file formats. The default directory # is /var/opt/dsau/layouts # # * CLOG_ADDITIONAL_LOG_DIRS[]= # - Array containing the list of # directories in which the viewer will # look for log files. The default is # /var/adm/syslog which should always # be the [0] element of the array. # # Text Log (other than package log) variables: # * CLOG_TEXT_LOG[]= - Array containing the list of # text logs other than package logs, # which are to be consolidated. # should contain the fully qualified # path to the text log file. # e.g. CLOG_TEXT_LOG[0]=/testdir/testfile # * CLOG_TEXT_FORMAT[]=[custom|syslog] - Array containing the format # of the corresponding text log. # The format could either be in # syslog entry format (syslog), # or non-syslog entry format (custom). # If it is in custom format, the entries # are converted into syslog format, before # they are forwarded to be consolidated. # The default is custom. # e.g. CLOG_TEXT_FORMAT[0]=custom # # CLOG_CONFIGURED=0 CLOG_LAYOUTS_DIR=/var/opt/dsau/layouts CLOG_ADDITIONAL_LOG_DIRS[0]=/var/adm/syslog