Skip to content

Commit

Permalink
Merge pull request #121 from SumoLogic/rmiller-bump-dockerfile-version
Browse files Browse the repository at this point in the history
Bump versions of plugins used in Dockerfile
  • Loading branch information
Ryan Miller authored Aug 5, 2019
2 parents eaa516d + 548968e commit ff72554
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
21 changes: 13 additions & 8 deletions deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fluent/fluentd:v1.6.2-1.0
FROM fluent/fluentd:v1.6.3-1.0

# Use root account to use apk
USER root
Expand All @@ -16,15 +16,20 @@ RUN apk add --no-cache --update --virtual .build-deps sudo build-base ruby-dev \
&& gem install lru_redux \
&& gem install snappy

# FluentD plugins to allow customers to forward data if needed to various cloud providers
RUN gem install fluent-plugin-s3
# TODO: Support additional cloud providers
# && gem install fluent-plugin-google-cloud \
# && gem install fluent-plugin-azure-storage-append-blob

# FluentD plugins from RubyGems
RUN gem install fluent-plugin-s3 -v 1.1.4 \
&& gem install fluent-plugin-systemd -v 0.3.1 \
&& gem install fluent-plugin-record-modifier \
&& gem install fluent-plugin-kubernetes_metadata_filter -v 1.0.2 \
RUN gem install fluent-plugin-systemd -v 1.0.2 \
&& gem install fluent-plugin-record-modifier -v 2.0.1 \
&& gem install fluent-plugin-kubernetes_metadata_filter -v 2.2.0 \
&& gem install fluent-plugin-sumologic_output -v 1.5.0 \
&& gem install fluent-plugin-concat -v 2.3.0 \
&& gem install fluent-plugin-rewrite-tag-filter -v 2.1.0 \
&& gem install fluent-plugin-prometheus -v 1.4.0 \
&& gem install fluent-plugin-concat -v 2.4.0 \
&& gem install fluent-plugin-rewrite-tag-filter -v 2.2.0 \
&& gem install fluent-plugin-prometheus -v 1.5.0 \
&& gem install fluent-plugin-kubernetes_sumologic -v 2.4.2

# FluentD plugins from this repository
Expand Down
1 change: 0 additions & 1 deletion deploy/kubernetes/fluentd-sumologic.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ data:
cache_size "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_SIZE']}"
cache_ttl "#{ENV['K8S_METADATA_FILTER_BEARER_CACHE_TTL']}"
tag_to_kubernetes_name_regexp '.+?\.containers\.(?<pod_name>[^_]+)_(?<namespace>[^_]+)_(?<container_name>.+)-(?<docker_id>[a-z0-9]{64})\.log$'
merge_json_log false
</filter>
<filter **>
@type enhance_k8s_metadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def fetch_resource(type, name, namespace, api_version = 'v1')
nil
end
rescue Kubeclient::ResourceNotFoundError => e
log.error e
log.warn e
nil
end
end
Expand Down
2 changes: 1 addition & 1 deletion fluent-plugin-events/lib/fluent/plugin/in_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def start_watcher_thread
end

if (!rv)
log.error "Resource version #{rv} expired, waiting for stream to be recreated with more recent version."
log.warn "Resource version #{rv} expired, waiting for stream to be recreated with more recent version."
break
end
end
Expand Down

0 comments on commit ff72554

Please sign in to comment.