You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc/03-Configuration.md: Logging Fields in Journald
While working on an issue where the additional logging information
provided by zap fields was missing, I realized that our documentation
did not indicate how to view them. So a new documentation section has
been added explaining how to view the fields when using the
`systemd-journald` logging output.
Also removes one trailing space.
This change is an almost identical replica of
<Icinga/icingadb#743>.
| level |**Optional.** Specifies the default logging level. Can be set to `fatal`, `error`, `warn`, `info` or `debug`. Defaults to `info`. |
88
-
| output |**Optional.** Configures the logging output. Can be set to `console` (stderr) or `systemd-journald`. If not set, logs to systemd-journald when running under systemd, otherwise stderr. |
89
-
| interval |**Optional.** Interval for periodic logging defined as [duration string](#duration-string). Defaults to `"20s"`. |
90
-
| options |**Optional.** Map of component name to logging level in order to set a different logging level for each component instead of the default one. See [logging components](#logging-components) for details. |
| level |**Optional.** Specifies the default logging level. Can be set to `fatal`, `error`, `warn`, `info` or `debug`. Defaults to `info`. |
88
+
| output |**Optional.** Configures the logging output. Can be set to `console` (stderr) or `systemd-journald`. Defaults to systemd-journald when running under systemd, otherwise to console. See notes below for [systemd-journald](#systemd-journald-fields).|
89
+
| interval |**Optional.** Interval for periodic logging defined as [duration string](#duration-string). Defaults to `"20s"`. |
90
+
| options |**Optional.** Map of component name to logging level in order to set a different logging level for each component instead of the default one. See [logging components](#logging-components) for details. |
91
91
92
92
### Logging Components
93
93
@@ -121,6 +121,21 @@ the cluster nodes resynchronise their states after each executed query, and may
121
121
However, this does not necessarily have to be the case if, for instance, Icinga Notifications is only allowed to connect to a
122
122
single cluster node at a time. This is the case when a load balancer does not randomly route connections to all the
123
123
nodes evenly, but always to the same node until it fails, or if your database cluster nodes have a virtual IP address
124
-
fail over assigned. In such situations, you can set the `wsrep_sync_wait` system variable to `0` in the
124
+
fail over assigned. In such situations, you can set the `wsrep_sync_wait` system variable to `0` in the
125
125
`/etc/icinga-notifications/config.yml` file to disable it entirely, as Icinga Notifications doesn't have to wait for cluster
126
126
synchronisation then.
127
+
128
+
### Systemd Journald Fields
129
+
130
+
When examining the journal with `journalctl`, fields containing additional information are hidden by default.
0 commit comments