about summary refs log tree commit diff
path: root/tools/eck-operator/templates
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-29 22:15:59 +0200
committermakefunstuff <[email protected]>2024-06-29 22:15:59 +0200
commit778fb4fc46bc18d9a5a55d059c8409fc5493f4e1 (patch)
tree2100b7366f5cf760268cce5b23583aea77736ab0 /tools/eck-operator/templates
parent55613654f7784eac4a5c6a80b60454ca7e443814 (diff)
downloadk3s-lab-778fb4fc46bc18d9a5a55d059c8409fc5493f4e1.tar.gz
add metada
Diffstat (limited to 'tools/eck-operator/templates')
-rw-r--r--tools/eck-operator/templates/beat.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/eck-operator/templates/beat.yaml b/tools/eck-operator/templates/beat.yaml
index 0b9edd4..2621bf9 100644
--- a/tools/eck-operator/templates/beat.yaml
+++ b/tools/eck-operator/templates/beat.yaml
@@ -12,6 +12,19 @@ spec:
     - type: container
       paths:
       - /var/log/containers/*.log
+      processors:
+      - add_kubernetes_metadata:
+          in_cluster: true
+          host: ${NODE_NAME}
+          matchers:
+          - logs_path:
+              logs_path: "/var/log/containers/"
+    filebeat.config.modules:
+      path: ${path.config}/modules.d/*.yml
+      reload.enabled: false
+    processors:
+      - add_cloud_metadata: ~
+      - add_host_metadata: ~
   daemonSet:
     podTemplate:
       spec: