Skip to content

Commit

Permalink
specify maxFileAge units
Browse files Browse the repository at this point in the history
  • Loading branch information
copejon committed Feb 21, 2024
1 parent 942703f commit 901f33f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enhancements/microshift/audit-log-configuration-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ Log rotation is governed by 3 values defining file size, number of retained file
- `maxFileSize` specifies maximum audit log file size. Accepted values must be a string concatenation of an integer and unit suffix with no separator character, e.g. `10GB`. Valid units are "MB", "GB", "TB". Since the kube-apiserver only accepts values defined in whole megabytes, MicroShift will need to translate this field value internally. This is trivial to implement and provides a bit of convenience to users.
- `maxFiles` specifies the maximum number of rotated audit log files to retain. Once this limit is reached, the apiserver will delete log files in order from oldest to newest, until all specified limits are satisfied.
- _For example_,`maxFiles: 1` results will result in only 1 rotated file being retained, provided it also is within the `maxFileAge` limit, if specified.
- `maxFileAge` specifies the maximum length of time to retain log files. Files older than this limit will be deleted.
- `maxFileAge` specifies the maximum time in days to retain log files. Files older than this limit will be deleted.

```yaml
apiServer:
auditLog:
maxFileSize: STRING
maxFiles: INT
maxFileAge: STRING
maxFileAge: INT
```

### Topology Considerations
Expand Down

0 comments on commit 901f33f

Please sign in to comment.