Skip to content

Commit

Permalink
Add extraOutputPluginConf for container logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Jan 22, 2021
1 parent 3565fab commit 16f5d00
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/docs/Best_Practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- [Multiline Support](#multiline-support)
- [Fluentd Autoscaling](#fluentd-autoscaling)
- [Fluentd File-Based Buffer](#fluentd-file-based-buffer)
- [Excluding Logs From Specific Components](#excluding-logs-from-specific-components)
- [Excluding Logs From Specific Components](#excluding-logs-from-specific-components)
- [Add a local file to fluent-bit configuration](#add-a-local-file-to-fluent-bit-configuration)
- [Filtering Prometheus Metrics by Namespace](#filtering-prometheus-metrics-by-namespace)
- [Modify the Log Level for Falco](#modify-the-log-level-for-falco)
Expand Down Expand Up @@ -180,7 +180,7 @@ See the following links to official Fluentd buffer documentation:
- https://docs.fluentd.org/configuration/buffer-section
- https://docs.fluentd.org/buffer/file

### Excluding Logs From Specific Components
## Excluding Logs From Specific Components

You can exclude specific logs from specific components from being sent to Sumo Logic
by specifying the following parameters either in the `values.yaml` file or the `helm install` command.
Expand Down
1 change: 1 addition & 0 deletions deploy/helm/sumologic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Parameter | Description | Default
`fluentd.logs.containers.k8sMetadataFilter.clientKey` | Path to a client key file to authenticate to the API server. | `Nil`
`fluentd.logs.containers.k8sMetadataFilter.bearerTokenFile` | Path to a file containing the bearer token to use for authentication. | `Nil`
`fluentd.logs.containers.extraFilterPluginConf` | To use additional filter plugins. | `Nil`
`fluentd.logs.containers.extraOutputPluginConf` | To use additional output plugins. | `Nil`
`fluentd.logs.kubelet.enabled` | Collect kubelet logs. | `true`
`fluentd.logs.kubelet.outputConf` | Output configuration for kubelet. | `@include logs.output.conf`
`fluentd.logs.kubelet.overrideOutputConf` | Override output section for kubelet logs. Leave empty for the default output section. | `Nil`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
exclude_namespace_regex {{ .Values.fluentd.logs.containers.excludeNamespaceRegex | quote }}
{{- end }}
</filter>
{{- .Values.fluentd.logs.containers.extraOutputPluginConf | nindent 4 }}
{{ if .Values.fluentd.logs.containers.overrideOutputConf }}
{{ .Values.fluentd.logs.containers.overrideOutputConf | nindent 4 }}
{{- else }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,9 @@ fluentd:
## To use additional filter plugins
extraFilterPluginConf: |-
## To use additional output plugins
extraOutputPluginConf: |-
## To enable stiching multiline logs in fluentd when fluent-bit Multiline feature is On
multiline:
enabled: true
Expand Down

0 comments on commit 16f5d00

Please sign in to comment.