From bb1a937c1a3d5ff29b3a06e7989a5f10ac795630 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 22 Sep 2023 18:15:15 +0800 Subject: [PATCH] filebeat --- dev-upgrade/elastic/filebeat.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev-upgrade/elastic/filebeat.yaml b/dev-upgrade/elastic/filebeat.yaml index 1bdb65f..c195000 100644 --- a/dev-upgrade/elastic/filebeat.yaml +++ b/dev-upgrade/elastic/filebeat.yaml @@ -12,10 +12,16 @@ data: path: ${path.config}/modules.d/*.yml reload.enabled: false + # To enable hints based autodiscover, remove `filebeat.inputs` configuration and uncomment this: filebeat.autodiscover: - providers: - - type: docker - hints.enabled: true + providers: + - type: kubernetes + node: ${NODE_NAME} + hints.enabled: true + # hints.default_config: + # type: container + # paths: + # - /var/log/containers/*${data.kubernetes.container.id}.log processors: - add_cloud_metadata: ~