Sha256: bab651a62cf9c4db438a01a8f016be82404f87e589833634ceea1ce9d03dc7f6
Contents?: true
Size: 1.65 KB
Versions: 77
Compression:
Stored size: 1.65 KB
Contents
<% log_dir = "/var/log/#{rubber_env.app_name}" log_spool_dir = "/var/spool/rsyslog" @path = "/etc/rsyslog.conf" @post = <<-ENDSCRIPT mkdir -p #{log_dir} #{log_spool_dir} chown syslog:adm #{log_dir} #{log_spool_dir} /usr/sbin/service rsyslog restart ENDSCRIPT %> # /etc/rsyslog.conf Configuration file for rsyslog. # # For more information see # /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html # # Default logging rules can be found in /etc/rsyslog.d/50-default.conf ################# #### MODULES #### ################# $ModLoad imuxsock # provides support for local system logging $ModLoad imklog # provides kernel logging support (previously done by rklogd) #$ModLoad immark # provides --MARK-- message capability $KLogPath /proc/kmsg # provides UDP syslog reception $ModLoad imudp $UDPServerRun 514 # provides TCP syslog reception #$ModLoad imtcp #$InputTCPServerRun 514 $WorkDirectory <%= log_spool_dir %> $template LogCollectorDynFile,"<%= log_dir %>/%$YEAR%/%$MONTH%/%$DAY%/%programname%.log" ########################### #### GLOBAL DIRECTIVES #### ########################### # # Use traditional timestamp format. # To enable high precision timestamps, comment out the following line. # $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat # Don't filter duplicated messages $RepeatedMsgReduction off # # Set the default permissions for all log files. # $FileOwner syslog $FileGroup adm $FileCreateMode 0640 $DirCreateMode 0755 $Umask 0022 $PrivDropToUser syslog $PrivDropToGroup adm # https://bugs.launchpad.net/ubuntu/+source/rsyslog/+bug/484336 # # Include all config files in /etc/rsyslog.d/ # $IncludeConfig /etc/rsyslog.d/*.conf
Version data entries
77 entries across 76 versions & 1 rubygems