I have few pods with label app1
I want to send some log files of those specific pods with custom tags to logstash.
Ex: /tmp/*.log of all pods with label: app1 should be sent to logstash with tag envoy-access-log
I have filebeat config like this
filebeat.autodiscover: providers: - type: kubernetes templates: - condition.contains: kubernetes.labels.app: app1 config: prospectors: paths: - /tmp/*.log tags: ["envoy-access-log"] logging.metrics.enabled: false output.logstash: hosts: ["logstash.monit:5044"]
But Its not working. How can I achieve this ?