diff --git a/filebeat/configmap.yaml b/filebeat/configmap.yaml index 28d4494..5ee506f 100644 --- a/filebeat/configmap.yaml +++ b/filebeat/configmap.yaml @@ -5,23 +5,23 @@ metadata: namespace: app-notifications data: filebeat.yml: | - filebeat.autodiscover: - providers: - - type: kubernetes - node: ${NODE_NAME} - hints.enabled: true - templates: - - condition: - equals: - kubernetes.namespace: "app-notifications" - config: - - type: container - paths: - - /var/log/containers/*_app-notifications_*.log + filebeat.inputs: + - type: filestream + id: kubernetes-containers + paths: + - /var/log/containers/*_app-notifications_*.log + prospector: + scanner: + fingerprint.enabled: true + fingerprint.offset: 0 + fingerprint.length: 512 + parsers: + - container: ~ processors: - add_kubernetes_metadata: in_cluster: true + host: ${NODE_NAME} - drop_event: when: not: