Configuring log files

When you run into issues to trace the log files or the log files end abruptly without the complete information about the action, you must configure settings for the log file in the configMap file.

Before you begin

  • You must have installed HCL OneTest Server.
  • You must have access to the Secure Shell (SSH) console.

About this task

To troubleshoot the issue, you can configure the following settings:
  • The maximum number of log files.
  • The maximum file size of each log file.
Note: The default value of the maximum number of log files is 5 and the maximum file size of each log file is 10 MB.

Procedure

  1. Open the HCL OneTest Data configMap file to edit by using the following command: kubectl edit configmap -n {namespace} {my-ots}-data-config -o yaml.
    Note: You can use the following command to get the list of the configMap files:kubectl get configmaps
  2. Modify the values of the following parameters that you want to change: log_file_size and max_no_of_log_files
  3. Save the changes.
  4. Restart the onetestdata pod by using the following command: kubectl delete pod {my-ots}-data-app-0.

Results

You have configured the settings for the log files. You have modified the maximum number of log files and the maximum size of each log file.