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: trueoutput.elasticsearch:
hosts: ["http://192.168.10.145:9200"]