diff --git a/packages/rancher-logging/generated-changes/overlay/app-readme.md b/packages/rancher-logging/generated-changes/overlay/app-readme.md index 2de4ab4c5..3b4d49310 100644 --- a/packages/rancher-logging/generated-changes/overlay/app-readme.md +++ b/packages/rancher-logging/generated-changes/overlay/app-readme.md @@ -20,3 +20,8 @@ To collect logs from an entire cluster, users create cluster flows and cluster o - [Output](https://banzaicloud.com/docs/one-eye/logging-operator/crds/v1beta1/output_types/) - An output is a CRD (`Output`) that defines how to connect to logging providers so logs can be sent to the provider. For more information on how to configure the Helm chart, refer to the Helm README. + +## Systemd Configuration +Some kubernetes distributions log to journald. In order to collect these logs the `systemdLogPath` needs to be defined. While the `/run/log/journal` directory is used by default, some Linux distributions do not default to this path. For example Ubuntu defaults to `/var/log/journal`. To determine your `systemdLogPath` run `cat /etc/systemd/journald.conf | grep -E ^\#?Storage | cut -d"=" -f2` on one of your nodes. If `persistent` is returned your `systemdLogPath` should be `/var/log/journal`. If `volatile` is returned `systemdLogPath` should be `/run/log/journal`. If `auto` is returned check if `/var/log/journal` exists, and if it does then use `/var/log/journal`, otherwise use `/run/log/journal`. + +If any value not described here is returned, Rancher Logging will not be able to collect control plane logs. To address this issue set `Storage=volatile` in journald.conf, reboot your machine, and set `systemdLogPath` to `/run/log/journal`. diff --git a/packages/rancher-logging/generated-changes/overlay/templates/loggings/k3s/configmap.yaml b/packages/rancher-logging/generated-changes/overlay/templates/loggings/k3s/configmap.yaml index 19300c5e7..96b76ef46 100644 --- a/packages/rancher-logging/generated-changes/overlay/templates/loggings/k3s/configmap.yaml +++ b/packages/rancher-logging/generated-changes/overlay/templates/loggings/k3s/configmap.yaml @@ -18,7 +18,7 @@ data: [INPUT] Name systemd Tag k3s - Path {{ .Values.systemdLogPath | default "/var/log/journal" }} + Path {{ .Values.systemdLogPath }} Systemd_Filter _SYSTEMD_UNIT=k3s.service {{- if .Values.additionalLoggingSources.k3s.stripUnderscores }} Strip_Underscores On diff --git a/packages/rancher-logging/generated-changes/overlay/templates/loggings/rke2/configmap.yaml b/packages/rancher-logging/generated-changes/overlay/templates/loggings/rke2/configmap.yaml index a7bf09f17..11aef4294 100644 --- a/packages/rancher-logging/generated-changes/overlay/templates/loggings/rke2/configmap.yaml +++ b/packages/rancher-logging/generated-changes/overlay/templates/loggings/rke2/configmap.yaml @@ -18,7 +18,7 @@ data: [INPUT] Name systemd Tag rke2 - Path {{ .Values.systemdLogPath | default "/var/run/journal" }} + Path {{ .Values.systemdLogPath }} Systemd_Filter _SYSTEMD_UNIT=rke2-server.service Systemd_Filter _SYSTEMD_UNIT=rke2-agent.service {{- if .Values.additionalLoggingSources.rke2.stripUnderscores }}