From a78a7c0bc65050141fb504a067984d0bc692a4ed Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Fri, 12 Jul 2024 16:27:24 +0100 Subject: [PATCH] chore: Copy syslog files from host if they exist (#95) Signed-off-by: Evans Mungai --- host/default.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host/default.yaml b/host/default.yaml index 348409d..5e7c3b2 100644 --- a/host/default.yaml +++ b/host/default.yaml @@ -248,6 +248,12 @@ spec: collectorName: "journalctl-dmesg" command: "journalctl" args: ["--dmesg", "--no-pager", "-S", "7 days ago"] + - copy: + collectorName: "syslog" + path: /var/log/syslog + - copy: + collectorName: "syslog" # Copy the previous syslog file as well in case the current one is rotated + path: /var/log/syslog.1 # Docker logs for K8s Control Plane - run: collectorName: "docker-logs-apiserver"