Skip to content

Commit

Permalink
describe truncate feature about advanced audit
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoShuFeng committed Sep 10, 2018
1 parent e79d0cc commit a4a1ae2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/en/docs/tasks/debug-application-cluster/audit.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,17 @@ and in the logs to monitor the state of the auditing subsystem.
- `apiserver_audit_error_total` metric contains the total number of events dropped due to an error
during exporting.

### truncate

Both log and webhook backends support batching. As an example, the following is the list of flags
available for the log backend:

- `audit-log-truncate-enabled` whether event and batch truncating is enabled.
- `audit-log-truncate-max-batch-size` maximum size of the batch sent to the underlying backend.
- `audit-log-truncate-max-event-size` maximum size of the audit event sent to the underlying backend.

By default truncate is disabled in both `webhook` and `log`.

## Multi-cluster setup

If you're extending the Kubernetes API with the [aggregation layer][kube-aggregator], you can also
Expand Down

0 comments on commit a4a1ae2

Please sign in to comment.