Better logging, better config

This commit is contained in:
Val
2015-07-27 11:39:32 +01:00
parent 1199b08e22
commit 8b2ef783ef
12 changed files with 106 additions and 34 deletions

View File

@@ -18,8 +18,8 @@ $notify_method = $forward_method;
# Bind on all interfaces (needed to expose this to linked containers)
$inet_socket_bind = '0.0.0.0';
# Accept incoming requests from all addresses (change if used outside of linked containers!)
@inet_acl = qw( ::/0 );
# Accept incoming requests from private ip range
@inet_acl = qw(172.0.0.0/8);
#------------ Do not modify anything below this line -------------
1; # ensure a defined return

View File

@@ -0,0 +1,28 @@
# /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
###########################
#### GLOBAL DIRECTIVES ####
###########################
# Filter duplicated messages
$RepeatedMsgReduction on
#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog
# Write everything to stdout
$template fmt,"%timestamp:::date-rfc3164%\n"
*.* /dev/stdout