k8s: Update audit-logging docs to include K8s examples (#18721)

Update audit-logging.mdx
This commit is contained in:
David Yu 2023-09-10 11:10:28 -07:00 committed by GitHub
parent 3e78b4cf34
commit 24d031d1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

View File

@ -82,6 +82,21 @@ audit {
}
}
```
```yaml
server:
auditLogs:
enabled: true
sinks:
- name: My Sink
type: file
format: json
path: /tmp/audit.json
delivery_guarantee: best-effort
rotate_duration: 24h
rotate_max_files: 15
rotate_bytes: 25165824
```
</CodeTabs>
</Tab>
@ -122,6 +137,18 @@ audit {
}
```
```yaml
server:
auditLogs:
enabled: true
sinks:
- name: My Sink
type: file
format: json
path: /dev/stdout
delivery_guarantee: best-effort
```
</CodeTabs>
</Tab>