Segregate filebeat log from kubernetes

How to segregate log stream messages with kubernetes pod name and namespace and container name

Filebeat configuration

    dnsPolicy: ClusterFirstWithHostNet
    hostNetwork: true
    securityContext:
      runAsUser: 0
    containers:
    - name: filebeat
      volumeMounts:
      - name: varlogcontainers
        mountPath: /var/log/containers
      - name: varlogpods
        mountPath: /var/log/pods
      - name: varlibdockercontainers
        mountPath: /var/lib/docker/containers
    volumes:
    - name: varlogcontainers
      hostPath:
        path: /var/log/containers
    - name: varlogpods
      hostPath:
        path: /var/log/pods
    - name: varlibdockercontainers
      hostPath:
        path: /var/lib/docker/containers

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.