Configuring your cluster to forward audit logs

You can enable audit logging for individual services to forward your audit logs to SIEM.

For more information about generating audit logs, see Configuring your cluster to generate various audit logs.

Enabling and disabling forwarding for audit logging

By default, forwarding is disabled. Each plug-in has a separate ConfigMap. For more information about audit logging ConfigMaps, see the following table:

ConfigMap Description
audit-logging-fluentd-ds-config This ConfigMap is the primary ConfigMap for audit logging. Source plug-ins and output plug-ins are imported to this ConfigMap.
audit-logging-fluentd-ds-source-config Source plug-in ConfigMap
audit-logging-fluentd-ds-remote-syslog-config IBM QRadar output plug-in ConfigMap
audit-logging-fluentd-ds-splunk-hec-config Splunk output ConfigMap

Enable and disable forwarding for audit logging from the console with following steps:

  1. Log in to your cluster.

  2. From the Red Hat® OpenShift® Container Platform console, click Workloads > ConfigMap.

  3. Select the audit-logging-fluentd-ds-config ConfigMap.

  4. Click the Options icon (Options icon) icon and click Edit.

  5. Enable forwarding for audit logging by setting the ENABLE_AUDIT_LOGGING_FORWARDING parameter value to true.

  6. Disable forwarding for audit logging by setting the ENABLE_AUDIT_LOGGING_FORWARDING parameter value to false. If you disable forwarding, ignore step 7.

  7. Forward your audit logs to SIEM.

    Note: There is one input plug-in configuration file and multiple output plug-in configuration files in your ConfigMap. Be sure to use only one output plug-in at a time.

  8. Click Submit

  9. Remove all pods of the audit-logging-fluentd-ds daemonset. Your pods are re-created automatically.

Note: Fluentd has an input plug-in that reads audit logs from journald. The plug-in is included in the audit-logging-fluentd-ds-source-config ConfigMap file.

The default path of journald is /run/log/journal. You can set a different path during cluster installation. For example, /var/log/journal. If you change the default journald path, you must update the path in following files: