Backport of k8s: Update audit-logging docs to include K8s examples into release/1.15.x (#18732)

backport of commit 1c262f005b

Co-authored-by: David Yu <dyu@hashicorp.com>
pull/18746/head
hc-github-team-consul-core 2023-09-10 13:16:27 -05:00 committed by GitHub
parent 5680edde98
commit 87406b5371
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>