From e8d6ffa9d8a745137374ded00fe9fd75288d781f Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Thu, 21 Sep 2023 09:36:21 +0100 Subject: [PATCH] [lxd-import] docs: Improve OVN syslog integration setup steps - Correct some minor mistakes. - Show how to set loki.types. Signed-off-by: Thomas Parrott --- doc/howto/network_ovn_setup.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/doc/howto/network_ovn_setup.md b/doc/howto/network_ovn_setup.md index 295fbf47452..c8d2fae5432 100644 --- a/doc/howto/network_ovn_setup.md +++ b/doc/howto/network_ovn_setup.md @@ -197,19 +197,23 @@ Complete the following steps to have the OVN controller send its logs to LXD. systemctl restart ovn-controller.service -You can now use [`incus monitor`](lxc_monitor.md) to see logs from the OVN controller: +You can now use [`incus monitor`](incus_monitor.md) to see logs from the OVN controller: incus monitor --type=ovn You can also send the logs to Loki. -To do so, add the `ovn` value to the {config:option}`server-loki:loki.types` configuration key. +To do so, add the `ovn` value to the {config:option}`server-loki:loki.types` configuration key, for example: + + incus config set loki.types=ovn ```{tip} You can include logs for OVN `northd`, OVN north-bound `ovsdb-server`, and OVN south-bound `ovsdb-server` as well. To do so, edit `/etc/default/ovn-central`: OVN_CTL_OPTS=" \ - --northd-log='-vsyslog:info --syslog-method=unix:/var/snap/lxd/common/lxd/syslog.socket' \ - --nb-log='-vsyslog:info --syslog-method=unix:/var/snap/lxd/common/lxd/syslog.socket' \ - --sb-log='-vsyslog:info --syslog-method=unix:/var/snap/lxd/common/lxd/syslog.socket'" + --ovn-northd-log='-vsyslog:info --syslog-method=unix:/var/snap/lxd/common/lxd/syslog.socket' \ + --ovn-nb-log='-vsyslog:info --syslog-method=unix:/var/snap/lxd/common/lxd/syslog.socket' \ + --ovn-sb-log='-vsyslog:info --syslog-method=unix:/var/snap/lxd/common/lxd/syslog.socket'" + + sudo systemctl restart ovn-central.service ```