Skip to content

Commit

Permalink
fix(logs): fix excluding logs by container, namespace, node, pod regex
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-stencel committed Feb 9, 2023
1 parent 232469d commit ae10164
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Fixed

- fix(logs): fix excluding logs by container, namespace, node, pod regex

[Unreleased]: https://github.com/SumoLogic/sumologic-kubernetes-collection/compare/v3.0.0...release-v3.0

## [v3.0.0]

### Migration from v2
Expand Down
8 changes: 4 additions & 4 deletions deploy/helm/sumologic/conf/logs/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ processors:
source_category_prefix: {{ .Values.sumologic.logs.container.sourceCategoryPrefix | quote }}
source_category_replace_dash: {{ .Values.sumologic.logs.container.sourceCategoryReplaceDash | quote }}
exclude:
k8s.namespace.name: {{ include "logs.excludeNamespaces" . }}
k8s.pod.name: {{ .Values.sumologic.logs.container.excludePodRegex | quote }}
k8s.container.name: {{ .Values.sumologic.logs.container.excludeContainerRegex | quote }}
k8s.node.name: {{ .Values.sumologic.logs.container.excludeHostRegex | quote }}
namespace: {{ include "logs.excludeNamespaces" . }}
pod: {{ .Values.sumologic.logs.container.excludePodRegex | quote }}
container: {{ .Values.sumologic.logs.container.excludeContainerRegex | quote }}
node: {{ .Values.sumologic.logs.container.excludeHostRegex | quote }}
annotation_prefix: "pod_annotations_"
pod_template_hash_key: "pod_labels_pod-template-hash"
pod_name_key: "pod_name"
Expand Down

0 comments on commit ae10164

Please sign in to comment.