Skip to content

Commit 23e4edb

Browse files
committed
Set a rate limit on syslog messages from all Docker containers
1 parent f98bec4 commit 23e4edb

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

dockers/docker-base-stretch/etc/rsyslog.conf

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
#################
1111

1212
$ModLoad imuxsock # provides support for local system logging
13+
14+
#
15+
# Set a rate limit on messages from the container
16+
#
17+
$SystemLogRateLimitInterval 300
18+
$SystemLogRateLimitBurst 10000
19+
1320
#$ModLoad imklog # provides kernel logging support
1421
#$ModLoad immark # provides --MARK-- message capability
1522

dockers/docker-base/etc/rsyslog.conf

+7
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
#################
1515

1616
$ModLoad imuxsock # provides support for local system logging
17+
18+
#
19+
# Set a rate limit on messages from the container
20+
#
21+
$SystemLogRateLimitInterval 300
22+
$SystemLogRateLimitBurst 10000
23+
1724
#$ModLoad imklog # provides kernel logging support
1825
#$ModLoad immark # provides --MARK-- message capability
1926

0 commit comments

Comments
 (0)