Skip to content

[Filebeat] Annotations dedot is ignored #25078

@Tibo669

Description

@Tibo669

Beats version: 7.11.2

The dedot functionallity cannot be disabled for annotations, even with annotations.dedot: false.
Using this Filebeat configuration we can expect to index documents with fields named like cls.department.

filebeat.autodiscover:
  providers:
    - type: kubernetes
      include_annotations: ["cls.department", "cls.project", "cls.logsource", "cls.environment"]
      annotations.dedot: false

But the document ends up indexed with fields cls_department - they are "dedotted" anyway.

According to the code, it is explained by the fact that we ignore annotations.dedot and we use labels.dedot.

annotationsMap := generateMapSubset(accessor.GetAnnotations(), r.config.IncludeAnnotations, r.config.LabelsDedot)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions