Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 2.28 KB

File metadata and controls

57 lines (44 loc) · 2.28 KB

Gathering {PlatformNameShort} logs

With the sos utility, you can collect configuration, diagnostic, and troubleshooting data, and give those files to Red Hat Technical Support. An sos report is a common starting point for Red Hat technical support engineers when performing analysis of a service request for {PlatformNameShort}.

You can collect an sos report for each host in your containerized {PlatformNameShort} deployment by running the log_gathering playbook with the appropriate parameters.

Procedure
  1. Go to the {PlatformNameShort} installation directory.

  2. Run the log_gathering playbook. This playbook connects to each host in the inventory file, installs the sos tool, and generates the sos report.

    $ ansible-playbook -i <path_to_inventory_file> ansible.containerized_installer.log_gathering
  3. Optional: To define additional parameters, specify them with the -e option. For example:

    $ ansible-playbook -i <path_to_inventory_file> ansible.containerized_installer.log_gathering -e 'target_sos_directory=<path_to_files>' -e 'case_number=0000000' -e 'clean=true' -e 'upload=true' -s
    1. You can use the -s option to step through each task in the playbook and confirm its execution. This is optional but can be helpful for debugging.

    2. The following is a list of the parameters you can use with the log_gathering playbook:

      Table 1. Parameter reference
      Parameter name Description Default

      target_sos_directory

      Used to change the default location for the sos report files.

      /tmp directory of the current server.

      case_number

      Specifies the support case number if relevant to the log gathering.

      clean

      Obfuscates sensitive data that might be present on the sos report.

      false

      upload

      Automatically uploads the sos report data to Red Hat.

      false

  4. Gather the sos report files described in the playbook output and share them with the support engineer or directly upload the sos report to Red Hat using the upload=true additional parameter.