apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat-config
  namespace: asyncy-system
  labels:
    k8s-app: filebeat
data:
  filebeat.yml: |-
    filebeat.config:
      inputs:
        # Mounted `filebeat-inputs` configmap:
        path: ${path.config}/inputs.d/*.yml
        # Reload inputs configs as they change:
        reload.enabled: false
      modules:
        path: ${path.config}/modules.d/*.yml
        # Reload module configs as they change:
        reload.enabled: false

    # To enable hints based autodiscover, remove `filebeat.config.inputs` configuration and uncomment this:
    #filebeat.autodiscover:
    #  providers:
    #    - type: kubernetes
    #      hints.enabled: true

    processors:
      - add_cloud_metadata:

    output.logstash:
      hosts: ["logstash.asyncy-system.svc.cluster.local:5044"]

    queue.mem:
      events: 4096
      flush.min_events: 512
      flush.timeout: 0s
