#  /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 immark  # provides --MARK-- message capability

###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
# $ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Filter duplicated messages
$RepeatedMsgReduction on

#
# Set the default permissions for all log files.
#
$DirOwner syslog
$DirGroup adm
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup adm

$ModLoad omrelp
µµµµµµµµµµ des regles sont specifiques au conteneur 'proxy'
µµµµµµµµµµ recupere le nom du groupe de conteneur pour le comparer au groupe courant
%try
%set %%proxy_container = %%creole_client.get_container('proxy')['group']
%except
%set %%proxy_container = ''
%end try

%if %%current_container['name'] == %%proxy_container
$ActionQueueType LinkedList
$ActionQueueFileName relpact
$ActionQueueSaveOnShutdown on
:programname, contains, "squid" :omrelp:%%adresse_ip_br0:20514
& stop
%end if

#
# Include config files in /etc/rsyslog.d/
#
#$IncludeConfig /etc/rsyslog.d/default_dispatching.conf

#Default policy
*.*	:omrelp:%%adresse_ip_br0:20514
& stop

