Skip to content

Commit

Permalink
Merge pull request openshift#1702 from nhosoi/bz1715370
Browse files Browse the repository at this point in the history
Bug 1715370: Some orphaned logs sent to .operations.* index
  • Loading branch information
openshift-merge-robot authored Jul 19, 2019
2 parents 9ef1e4e + 5f32023 commit fea449c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fluentd/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ if [ -z $ES_PORT ]; then
exit 1
fi

# Check bearer_token_file for fluent-plugin-kubernetes_metadata_filter.
if [ ! -s /var/run/secrets/kubernetes.io/serviceaccount/token ] ; then
echo "ERROR: Bearer_token_file (/var/run/secrets/kubernetes.io/serviceaccount/token) to access the Kubernetes API server is missing or empty."
exit 1
fi

# How many outputs?
# check ES_HOST vs. OPS_HOST; ES_PORT vs. OPS_PORT
if [ "$ES_HOST" = ${OPS_HOST:-""} -a $ES_PORT -eq ${OPS_PORT:-0} ]; then
Expand Down

0 comments on commit fea449c

Please sign in to comment.