Skip to content

Commit a78a7c0

Browse files
authored
chore: Copy syslog files from host if they exist (#95)
Signed-off-by: Evans Mungai <[email protected]>
1 parent c899638 commit a78a7c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

host/default.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@ spec:
248248
collectorName: "journalctl-dmesg"
249249
command: "journalctl"
250250
args: ["--dmesg", "--no-pager", "-S", "7 days ago"]
251+
- copy:
252+
collectorName: "syslog"
253+
path: /var/log/syslog
254+
- copy:
255+
collectorName: "syslog" # Copy the previous syslog file as well in case the current one is rotated
256+
path: /var/log/syslog.1
251257
# Docker logs for K8s Control Plane
252258
- run:
253259
collectorName: "docker-logs-apiserver"

0 commit comments

Comments
 (0)