Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add plugin specific log level for metadata and output plugins #559

Merged
merged 2 commits into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions deploy/helm/sumologic/conf/logs/logs.source.containers.conf
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@
# third-party kubernetes metadata filter plugin
<filter containers.**>
@type kubernetes_metadata
@log_level {{ .Values.fluentd.metadata.pluginLogLevel }}
@include logs.kubernetes.metadata.filter.conf
</filter>
# sumologic kubernetes metadata enrichment filter plugin
<filter containers.**>
@type enhance_k8s_metadata
@log_level {{ .Values.fluentd.metadata.pluginLogLevel }}
@include logs.enhance.k8s.metadata.filter.conf
</filter>
{{- .Values.fluentd.logs.containers.extraFilterPluginConf | nindent 4 }}
Expand All @@ -46,6 +48,7 @@
<match containers.**>
@type sumologic
@id sumologic.endpoint.logs
@log_level {{ .Values.fluentd.logs.output.pluginLogLevel }}
{{- .Values.fluentd.logs.containers.outputConf | nindent 6 }}
<buffer>
{{- if or .Values.fluentd.persistence.enabled (eq .Values.fluentd.buffer.type "file") }}
Expand Down
4 changes: 4 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ fluentd:
cacheTtl: "3600"
## Option to control the interval at which metadata cache is asynchronously refreshed (in seconds).
cacheRefresh: "1800"
## Option to give plugin specific log level
pluginLogLevel: "error"

logs:
## Configuration for sumologic output plugin
Expand All @@ -202,6 +204,8 @@ fluentd:
addTimestamp: true
## Field name when add_timestamp is on.
timestampKey: "timestamp"
## Option to give plugin specific log level
pluginLogLevel: "error"
## Additional config parameters for sumologic output plugin
extraConf: |-

Expand Down