Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.

Commit ceaa347

Browse files
committed
feat(elasticsearch): Add support for dropping fluentd's own logs to stop an infinite death spiral
1 parent af15873 commit ceaa347

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ By default we do not capture kubernetes system logs. However, it is possible to
2626

2727
Set a variable's value to a non-empty string such as "true" to capture that log. Make these changes to the tpl/deis-logger-fluentd-daemon.yaml file in the Workflow chart directory.
2828

29+
### Drop Fluentd Logs
30+
To turn off log collection of fluentd's own logs to avoid infinite loops set the following environment variable to a non-empty string value
31+
* DROP_FLUENTD_LOGS
32+
2933
### Disable Deis Output
3034
To turn off the deis output plugin set the following environment variable to a non-empty string value
3135
* DISABLE_DEIS_OUTPUT

rootfs/opt/fluentd/sbin/boot

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ source /opt/fluentd/sbin/plugins
2828
source /opt/fluentd/sbin/sources
2929
source /opt/fluentd/sbin/filters/filters
3030

31+
if [ -n "$DROP_FLUENTD_LOGS" ]
32+
then
33+
cat << EOF >> $FLUENTD_CONF
34+
<match fluent.**>
35+
type null
36+
</match>
37+
EOF
38+
fi
39+
3140
cat << EOF >> $FLUENTD_CONF
3241
<match **>
3342
@type copy

0 commit comments

Comments
 (0)