How to disable apiserver audit logs in Openshift 4 with unsupported method.
Issue
- Audit is defined as per following policy
- Audit produces a lot of logs and organizations might be interested in disabling the logs. Audit log policy Default, WriteRequestBodies and AllRequestBodies apply for openshift-apiserver and produce logs into /var/log/openshift-apiserver/:
[root@control-plane-0 kube-apiserver]# ls -ltrh
total 664M
-rw-r--r--. 1 root root 100M 3 janv. 16:56 audit-2021-01-03T16-56-54.361.log
-rw-r--r--. 1 root root 100M 3 janv. 17:16 audit-2021-01-03T17-16-50.803.log
-rw-r--r--. 1 root root 100M 3 janv. 17:28 audit-2021-01-03T17-28-49.458.log
-rw-r--r--. 1 root root 100M 3 janv. 17:44 audit-2021-01-03T17-44-29.228.log
-rw-r--r--. 1 root root 100M 3 janv. 18:04 audit-2021-01-03T18-04-00.401.log
-rw-r--r--. 1 root root 100M 3 janv. 18:23 audit-2021-01-03T18-23-17.021.log
-rw-r--r--. 1 root root 43M 5 janv. 21:27 audit.log
Environment
- Red Hat Openshift Container Platform 4.6 [RHOCP]
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.