Skip to content

Commit

Permalink
chore: Copy syslog files from host if they exist (#95)
Browse files Browse the repository at this point in the history
Signed-off-by: Evans Mungai <[email protected]>
  • Loading branch information
banjoh authored Jul 12, 2024
1 parent c899638 commit a78a7c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions host/default.yaml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a78a7c0

Please sign in to comment.