Description of problem: Starting with OpenShift v3.4, we have started enabling the audit logging feature in our master-config.yaml: auditConfig: enabled: true auditFilePath: /var/log/openshift-master-audit.log maximumFileRetentionDays: 14 maximumFileSizeMegabytes: 100 Currently, the previous day's logs are stored uncompressed. On a busy cluster, we have seen >1GB of logs generated in a day, which takes up considerable storage space. It would be great if audit logging gzipped these older log files automatically. Version-Release number of selected component (if applicable): v3.4.1.18 How reproducible: always
Why not also use "maximumRetainedFiles: 20" so that you cap the total disk usage at 2 GB?
If instead we don't use an auditFilePath configuration, these AUDIT logs will go to stdout. If we then use fluentd to collect logs from the master nodes as well, then all these audit logs will land in Elasticsearch under the .operations indices. We could then ask the logging team to parse the audit logs to decorate those logs with metadata derived from the logs themselves to make them easier to search and correlate in Elasticsearch.
With the introduction of OpenShift 4, Red Hat has delivered or roadmapped a substantial number of features based on feedback by our customers. Many of the enhancements encompass specific RFEs which have been requested, or deliver a comparable solution to a customer problem, rendering an RFE redundant. This bz (RFE) has been identified as a feature request not yet planned or scheduled for an OpenShift release and is being closed. If this feature is still an active request that needs to be tracked, Red Hat Support can assist in filing a request in the new JIRA RFE system, as well as provide you with updates as the RFE progress within our planning processes. Please open a new support case: https://access.redhat.com/support/cases/#/case/new Opening a New Support Case: https://access.redhat.com/support/cases/#/case/new As the new Jira RFE system is not yet public, Red Hat Support can help answer your questions about your RFEs via the same support case system.