Reduce audit logs
Last updated March 26th, 2026
Environment
- Knox E-FOTA On-Premises
- Red Hat Enterprise Linux
Overview
Knox E-FOTA On-Premises may generate many audit logs, which can quickly fill up disk space and cause system instability. You can configure containers to reduce continuous logging by disabling SELinux labeling.
This solution modifies the container startup options in the dfm_config.json file to add the --security-opt label=disable option, which reduces audit log generation for the specified container.
Reduce audit logging for containers
To reduce audit log generation:
-
On your Knox E-FOTA On-Premises server, navigate to
/dfm/config/:cd /dfm/config -
Open the
dfm_config.jsonfile in a text editor. -
In the JSON configuration file, locate the following container run command options:
opt_mysql_run_cmd— MySQL database containeropt_minio_run_cmd— MinIO object storage containeropt_core_run_cmd— Core service containeropt_console_run_cmd— Console service containeropt_haproxy_run_cmd— HAProxy load balancer container
-
Add the
--security-opt label=disableoption to the run command for each container where you want to reduce audit logging. Here’s an example that adds this option to theopt_core_run_cmdrun command:"opt_core_run_cmd": "--log-driver json-file --log-opt max-size=5m --log-opt max-file=10 --restart=always --security-opt=no-new-privileges --security-opt label=disable --health-cmd='curl --fail http://127.0.0.1:10080/index.html || exit 1'" -
Save the
dfm_config.jsonfile and exit the text editor. -
Restart the containers for which you modified the configuration. For example, to restart the core service container:
dfm restart dfm-core
After applying this configuration, the specified containers will generate fewer audit logs, saving disk space and preventing system instability.
On this page
Is this page helpful?