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

Version Path
rubber-3.2.2 templates/base/config/rubber/common/rsyslog.conf
rubber-3.2.1 templates/base/config/rubber/common/rsyslog.conf
rubber-3.2.0 templates/base/config/rubber/common/rsyslog.conf
rubber-3.1.0 templates/base/config/rubber/common/rsyslog.conf
rubber-3.0.1 templates/base/config/rubber/common/rsyslog.conf
rubber-3.0.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.16.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.15.2 templates/base/config/rubber/common/rsyslog.conf
rubber-2.15.1 templates/base/config/rubber/common/rsyslog.conf
rubber-2.15.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.14.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.13.1 templates/base/config/rubber/common/rsyslog.conf
rubber-2.13.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.12.2 templates/base/config/rubber/common/rsyslog.conf
rubber-2.12.1 templates/base/config/rubber/common/rsyslog.conf
rubber-2.12.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.11.0 templates/base/config/rubber/common/rsyslog.conf
rubber-2.10.2 templates/base/config/rubber/common/rsyslog.conf
rubber-2.10.1 templates/base/config/rubber/common/rsyslog.conf
rubber-2.10.0 templates/base/config/rubber/common/rsyslog.conf