From 7ee2539645e225e00bec2c10110e19880f14c2af Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Wed, 30 Nov 2022 10:43:09 +0100 Subject: [PATCH] debugd: document basic logcollection Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- debugd/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/debugd/README.md b/debugd/README.md index 40ed3b59b..9c4829915 100644 --- a/debugd/README.md +++ b/debugd/README.md @@ -52,6 +52,35 @@ With `cdbg` and `yq` installed in your path: 6. Run `constellation init […]` as usual +### Logcollection to Opensearch + +You can enable the logcollection of debugd to send logs to Opensearch. + +On Azure, ensure your user assigned identity has the `Key Vault Secrets User` role assigned on the key vault `opensearch-creds`. + +When deploying with cdbg, enable by setting the `logcollect=true` and your name `logcollect.admin=yourname`. + +```shell-session +./cdbg deploy --info logcollect=true,logcollect.admin=yourname + +# OR + +./cdbg deploy --info logcollect=true --info logcollect.admin=yourname +``` + +Other available fields can be found in [the filed list](/debugd/internal/debugd/logcollector/fields.go) + +For QEMU, the credentials for Opensearch must be parsed via the info flag as well: + +```shell-session +./cdbg deploy \ + --info logcollect=true \ + --info logcollect.admin=yourname \ + --info qemu.opensearch-pw='xxxxxxx' + +``` + +Remember to use single quotes for the password. ### debugd images