From b8a5faa08d9f0cdc7adfef33f05c239198a12f65 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o=20-=20Le=20Filament?= <theo@le-filament.com>
Date: Tue, 2 May 2023 16:35:04 +0200
Subject: [PATCH] feat: add dpkg log collecting

---
 templates/filebeat.yml.j2 | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/templates/filebeat.yml.j2 b/templates/filebeat.yml.j2
index 09a4c1f..02c315e 100644
--- a/templates/filebeat.yml.j2
+++ b/templates/filebeat.yml.j2
@@ -20,6 +20,16 @@ filebeat.autodiscover:
 {% endif %}
 
 {% endif %}
+
+filebeat.inputs:
+- type: filestream
+  id: dpkg
+  name: "dpkg"
+  paths:
+    - /var/log/dpkg.log
+  fields:
+    source_app: "dpkg"
+
 # ================================== Outputs ===================================
 # ------------------------------ Logstash Output -------------------------------
 output.logstash:
-- 
GitLab