mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 07:29:29 -05:00
debugd: document basic logcollection
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
56beb05170
commit
7ee2539645
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user