mirror of https://github.com/status-im/consul.git
Aligns audit log code example (#10371)
This commit is contained in:
parent
dbca996c3c
commit
119960211d
|
@ -853,17 +853,17 @@ Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'."
|
||||||
and configure a sink and filters for their audit logs. For more information, review the [audit log tutorial](https://learn.hashicorp.com/tutorials/consul/audit-logging).
|
and configure a sink and filters for their audit logs. For more information, review the [audit log tutorial](https://learn.hashicorp.com/tutorials/consul/audit-logging).
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
audit {
|
audit {
|
||||||
enabled = true
|
enabled = true
|
||||||
sink "My sink" {
|
sink "My sink" {
|
||||||
type = "file"
|
type = "file"
|
||||||
format = "json"
|
format = "json"
|
||||||
path = "data/audit/audit.json"
|
path = "data/audit/audit.json"
|
||||||
delivery_guarantee = "best-effort"
|
delivery_guarantee = "best-effort"
|
||||||
rotate_duration = "24h"
|
rotate_duration = "24h"
|
||||||
rotate_max_files = 15
|
rotate_max_files = 15
|
||||||
rotate_bytes = 25165824
|
rotate_bytes = 25165824
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue