From 24d031d1ed85e8ad020c0d10a60ed7ca0ce089c7 Mon Sep 17 00:00:00 2001 From: David Yu Date: Sun, 10 Sep 2023 11:10:28 -0700 Subject: [PATCH] k8s: Update audit-logging docs to include K8s examples (#18721) Update audit-logging.mdx --- .../content/docs/enterprise/audit-logging.mdx | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/website/content/docs/enterprise/audit-logging.mdx b/website/content/docs/enterprise/audit-logging.mdx index 14d87265bf..75d3b33a41 100644 --- a/website/content/docs/enterprise/audit-logging.mdx +++ b/website/content/docs/enterprise/audit-logging.mdx @@ -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 +``` @@ -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 +``` +