Skip to content

How fix add_kubernetes_metadata in new version 7.7.0? #18481

@davidoceans

Description

@davidoceans

Hi,

I've update to latest version of filebeat because I would like test the nginx-ingress-controller parser.
docker.elastic.co/beats/filebeat:7.7.0

But I was using this add_kubernetes_metadata.

Sorry could you say me how I should to change it to work properly?

I'm using Kubernetes, and this is a section of my filebeat configmap

    filebeat.inputs:
    - type: container
      paths:
        - /var/log/containers/*.log
      multiline.pattern: '^[[:space:]]+(at|\.{3})\b|^Caused by:'
      multiline.negate: false
      multiline.match: after
      processors:
        - add_kubernetes_metadata:
            in_cluster: true
            host: ${NODE_NAME}
            matchers:
            - logs_path:
                logs_path: "/var/log/containers/"

Thank you very much

Metadata

Metadata

Assignees

Labels

Team:PlatformsLabel for the Integrations - Platforms teambug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions