Skip to content

1.2.20 Ensure that the --audit-log-maxbackup argument is set to 10 or as appropriate #33

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
scfast opened this issue Apr 30, 2023 · 0 comments
Labels
Level 1 Level 1 hardness

Comments

@scfast
Copy link

scfast commented Apr 30, 2023

Profile Applicability:
• Level 1 - Master Node

Description:
Retain 10 or an appropriate number of old log files.

Rationale:
Kubernetes automatically rotates the log files. Retaining old log files ensures that you
would have sufficient log data available for carrying out any investigation or correlation.
For example, if you have set file size of 100 MB and the number of old log files to keep
as 10, you would approximate have 1 GB of log data that you could potentially use for
your analysis.

Impact:
None

Audit:
Run the following command on the Control Plane node:
ps -ef | grep kube-apiserver
Verify that the --audit-log-maxbackup argument is set to 10 or as appropriate.

Default Value:
By default, auditing is not enabled.

References:

  1. https://kubernetes.io/docs/admin/kube-apiserver/
  2. https://kubernetes.io/docs/concepts/cluster-administration/audit/
  3. API Audit Logging kubernetes/enhancements#22
@scfast scfast added the Level 1 Level 1 hardness label Apr 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Level 1 Level 1 hardness
Projects
None yet
Development

No branches or pull requests

1 participant