Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
feat(elasticsearch): Add support for dropping fluentd's own logs to s…
Browse files Browse the repository at this point in the history
…top an infinite death spiral
  • Loading branch information
sstarcher committed Oct 19, 2016
1 parent af15873 commit ceaa347
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,10 @@ By default we do not capture kubernetes system logs. However, it is possible to

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.

### Drop Fluentd Logs
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
* DROP_FLUENTD_LOGS

### Disable Deis Output
To turn off the deis output plugin set the following environment variable to a non-empty string value
* DISABLE_DEIS_OUTPUT
Expand Down
9 changes: 9 additions & 0 deletions rootfs/opt/fluentd/sbin/boot
Expand Up @@ -28,6 +28,15 @@ source /opt/fluentd/sbin/plugins
source /opt/fluentd/sbin/sources
source /opt/fluentd/sbin/filters/filters

if [ -n "$DROP_FLUENTD_LOGS" ]
then
cat << EOF >> $FLUENTD_CONF
<match fluent.**>
type null
</match>
EOF
fi

cat << EOF >> $FLUENTD_CONF
<match **>
@type copy
Expand Down

0 comments on commit ceaa347

Please sign in to comment.