mirror of https://github.com/docker/docs.git
build issues fixed
This commit is contained in:
parent
c5a1d0b7a8
commit
b6b3fe9e72
|
|
@ -38,23 +38,28 @@ You can use audit logs to help with the following use cases:
|
||||||
|
|
||||||
## Procedure
|
## Procedure
|
||||||
|
|
||||||
1. Download the UCP Client bundle [Download client bundle from the command line] (https://success.docker.com/article/download-client-bundle-from-the-cli).
|
1. Download the UCP Client bundle [Download client bundle from the command line](https://success.docker.com/article/download-client-bundle-from-the-cli).
|
||||||
|
|
||||||
2. Retrieve JSON for current audit log configuration.
|
2. Retrieve JSON for current audit log configuration.
|
||||||
```
|
|
||||||
export DOCKER_CERT_PATH=~/ucp-bundle-dir/
|
|
||||||
curl --cert ${DOCKER_CERT_PATH}/cert.pem --key ${DOCKER_CERT_PATH}/key.pem --cacert ${DOCKER_CERT_PATH}/ca.pem -k -X GET https://ucp-domain/api/ucp/config/logging > auditlog.json
|
|
||||||
```
|
|
||||||
3. Modify the auditLevel field to metadata or request.
|
|
||||||
```
|
|
||||||
vi auditlog.json
|
|
||||||
|
|
||||||
{"logLevel":"INFO","auditLevel":"metadata","supportDumpIncludeAuditLogs":false}
|
```
|
||||||
```
|
export DOCKER_CERT_PATH=~/ucp-bundle-dir/
|
||||||
|
curl --cert ${DOCKER_CERT_PATH}/cert.pem --key ${DOCKER_CERT_PATH}/key.pem --cacert ${DOCKER_CERT_PATH}/ca.pem -k -X GET https://ucp-domain/api/ucp/config/logging > auditlog.json
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Modify the auditLevel field to metadata or request.
|
||||||
|
|
||||||
|
```
|
||||||
|
vi auditlog.json
|
||||||
|
|
||||||
|
{"logLevel":"INFO","auditLevel":"metadata","supportDumpIncludeAuditLogs":false}
|
||||||
|
```
|
||||||
|
|
||||||
4. Send the JSON request for the auditlog config with the same API path but with the `PUT` method.
|
4. Send the JSON request for the auditlog config with the same API path but with the `PUT` method.
|
||||||
```
|
|
||||||
curl --cert ${DOCKER_CERT_PATH}/cert.pem --key ${DOCKER_CERT_PATH}/key.pem --cacert ${DOCKER_CERT_PATH}/ca.pem -k -H "Content-Type: application/json" -X PUT --data $(cat auditlog.json) https://ucp-domain/api/ucp/config/logging
|
```
|
||||||
```
|
curl --cert ${DOCKER_CERT_PATH}/cert.pem --key ${DOCKER_CERT_PATH}/key.pem --cacert ${DOCKER_CERT_PATH}/ca.pem -k -H "Content-Type: application/json" -X PUT --data $(cat auditlog.json) https://ucp-domain/api/ucp/config/logging
|
||||||
|
```
|
||||||
|
|
||||||
5. Create any workload or RBAC grants in Kubernetes and generate a support dump to check the contents of ucp-controller.log file for audit log entries.
|
5. Create any workload or RBAC grants in Kubernetes and generate a support dump to check the contents of ucp-controller.log file for audit log entries.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue