How to filter the scan scope of containers.paths


I only want to collect the directories at the beginning of back and front, how should I set the filter?

filebeat.inputs:

  • type: container
    paths:
    • "/var/log/pods///*.log"
      stream: "all"

processors:

  • add_host_metadata: ~
  • add_docker_metadata: ~
  • add_kubernetes_metadata:
    in_cluster: true

output.elasticsearch:
hosts: ["http://192.168.10.145:9200"]

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