Disabling audit logs

As a default configuration, HCL® OneTest Data generates audit logs for each failed test data generation job. However, you might want to disable the audit logs when you no longer require them. In such case, you must change the default configuration.

Before you begin

  • You must have cluster-admin permissions.
  • You must have the IP address of the computer where HCL OneTest Server is installed.

About this task

You must set the value of the AUDIT_ENABLED property in the configmap file to disable the audit log for all the failed test data generation jobs.

Procedure

  1. Log in to the SSH console of HCL OneTest Server.
  2. Run the following command to edit the configuration file:

    kubectl edit configmap -n test-system {my-ots}-data-config -o yaml

  3. Search for the AUDIT_ENABLED property in the configuration file, and then set the value as false.
    Note: The default value of AUDIT_ENABLED is true.
  4. Save your changes, and then exit from the configuration file.
  5. Run the following command to delete and restart the <onetest data> pod:

    kubectl delete pod {my-ots}-data-app-0

Results

You have successfully disabled the audit logs for all the failed test data generation jobs.