mirror of
https://gitee.com/rancher/rancher.git
synced 2025-12-06 15:59:37 +08:00
update doc to properlly reflect new funcitonality
This commit is contained in:
@@ -169,7 +169,7 @@ Specify each parameter using the `--set key=value[,key=value]` argument to `helm
|
||||
| `replicas` | 3 | ***int*** - Number of replicas of Rancher pods |
|
||||
| `auditLog.destination` | "sidecar" | ***string*** - Stream to sidecar container console or hostPath volume - *"sidecar, hostPath"* |
|
||||
| `auditLog.hostPath` | "/var/log/rancher/audit" | ***string*** - log file destination on host (only applies when **auditLog.destination** is set to **hostPath**) |
|
||||
| `auditLog.level` | 0 | ***int*** - set the [API Audit Log level](https://ranchermanager.docs.rancher.com/how-to-guides/advanced-user-guides/enable-api-audit-log#audit-log-levels). 0 is off. [0-3] |
|
||||
| `auditLog.level` | 0 | ***int*** - set the API Audit Log level |
|
||||
| `auitLog.enabled` | false | ***bool*** - enable the rancher audit logging system |
|
||||
| `auditLog.maxAge` | 1 | ***int*** - maximum number of days to retain old audit log files (only applies when **auditLog.destination** is set to **hostPath**) |
|
||||
| `auditLog.maxBackup` | 1 | int - maximum number of audit log files to retain (only applies when **auditLog.destination** is set to **hostPath**) |
|
||||
|
||||
2
main.go
2
main.go
@@ -138,7 +138,7 @@ func main() {
|
||||
Name: "audit-level",
|
||||
Value: 0,
|
||||
EnvVar: "AUDIT_LEVEL",
|
||||
Usage: "Audit log level: 0 - disable audit log, 1 - log event metadata, 2 - log event metadata and request body, 3 - log event metadata, request body and response body",
|
||||
Usage: "Audit log level: 0 - audit log event metadata, 1 - log metadata and headers, 2 - log event metadata, headers, and request body, 3 - log event metadata, headers, request body, and response body",
|
||||
Destination: &config.AuditLogLevel,
|
||||
},
|
||||
cli.BoolFlag{
|
||||
|
||||
Reference in New Issue
Block a user