From 59c88225045b4386d0da8aa6ffbc21b23092c3ab Mon Sep 17 00:00:00 2001 From: Jennifer Travinski Date: Mon, 30 Aug 2021 14:37:25 -0400 Subject: [PATCH] Updated code for spacing and line breaks --- .../rancher/v2.6/en/logging/helm-chart-options/_index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/rancher/v2.6/en/logging/helm-chart-options/_index.md b/content/rancher/v2.6/en/logging/helm-chart-options/_index.md index a4e91eb3b34..095bd67a6ab 100644 --- a/content/rancher/v2.6/en/logging/helm-chart-options/_index.md +++ b/content/rancher/v2.6/en/logging/helm-chart-options/_index.md @@ -75,14 +75,14 @@ In Rancher logging, `SystemdLogPath` must be configured for K3s and RKE2 Kuberne K3s and RKE2 Kubernetes distributions log to journald, which is the subsystem of systemd that is used for logging. 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` configuration, see steps below. -**Steps for Systemd Configuration:**
+**Steps for Systemd Configuration:** 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, your `systemdLogPath` should be `/run/log/journal`. -* If `auto` is returned, check if `/var/log/journal` exists.
-      - If `/var/log/journal` exists, then use `/var/log/journal`.
-      - If `/var/log/journal` does not exist, then use `/run/log/journal`. +* If `auto` is returned, check if `/var/log/journal` exists. + * If `/var/log/journal` exists, then use `/var/log/journal`. + * If `/var/log/journal` does not exist, then use `/run/log/journal`. * If any value not described above 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`. \ No newline at end of file