How to download log files for troubleshooting

A. By OmniDeq Service Logs

I. Logs from OmniDeq UI

You can get the logs from OmniDeq UI by following below steps:

  1. Navigate to the project at OmniDeq UI in the browser, click on settings at the upper right corner. servive logs Navigation

  2. Click on OmniDeq logs, You will get all service logs here. click on the download logs for the particular service logs. service logs

II. Logs from OmniDeq Enterprise Server

To obtain the logs from the OmniDeq Enterprise server, log in to it through SSH and execute the commands below.

sudo docker logs -f <omnideq_service_name>

Note: You can get the service names by running the command sudo docker images

Phase OmniDeq Service Name
Windows Pre-requsites discover-service-windows
Windows Discovery discover-service-windows, core-engine
Windows offline Discovery discover-service-windows
Windows Netwatch discover-service-windows
Windows Transform transform-service-windows
Linux Pre-requisites discover-service-linux
Linux Discovery discover-service-linux, core-engine
Linux offline Discovery discover-service-linux
Linux Netwatch discover-service-linux
Linux Transform transform-service-linux
Cruize cruize-service
UI Related Issues webapp, Network response for respective call
Vault Creation vault-service, core-engine
Reports report-service

B. Host/VM Logs

You can obtain the logs from the host machine through various methods, as outlined below.

I. Discovery logs

a. From OmniDeq UI:

We can get the Discover logs by requesting them from the OmniDeq UI by following the below steps:

  1. Navigate to the Project where the host or component exists that you want to collect logs for. Click on Discover and click on the 3 dots against the host you want to collect logs for. Access menu

  2. Click on Request log Request log

  3. Once you click on it, a popup will be displayed for confirmation. Click on Request log Request confirmation

  4. Once you click on it, a notification will be displayed as shown below Request notification

  5. Once the logs have been collected, you will receive a notification for the same Request complete notification

  6. You can click on the 3 dots and download the log file by clicking on Download log Log download

  7. If, instead of a host log, you want to download log file for a component, navigate to the Components tab, click on the 3 dots against the component and select Request log Component request log

  8. Once you click on it, a popup will be displayed for confirmation. Click on Request log Component request confirmation

  9. The Request log will change to Request log in progress... Component request in progress

  10. Once the log is generated, you can download it by clicking on Download log as shown below Component download log

b. From VM/Host:

i. Discovery logs from Linux Host

We can obtain discovery logs from a Linux Host/VM by navigating to the following path on Linux host machine.

Phase Host Machine (Latest Folders)
Linux Pre-requisites /opt/.ch-tools/logs/discover/livelinesscheck.log
Linux Discovery Discover Logs: /opt/.ch-tools/logs/discover/*.log
Probe Logs: /opt/.ch-tools/logs/chtool.out
Error Logs: /opt/.ch-tools/logs/chtool.error
Linux offline Discovery Discover Logs: /opt/.ch-tools/logs/discover/*.log
Probe Logs: /opt/.ch-tools/logs/chtool.out
Error Logs: /opt/.ch-tools/logs/chtool.error
Linux Netwatch /opt/.ch-tools/logs/discover/netwatch.log

ii. Discovery logs from Windows Host

We can obtain discovery logs from a Linux Host/VM by navigating to the following path on Windows host machine.

Phase Host Machine (Latest Folders)
Windows Pre-requisites <UserHomeDir>\.ch-dis-<someNumber>\DiscoveryData\liveliness.txt
Windows Discovery <UserHomeDir>\.ch-dis-<someNumber>\DiscoveryLogs\winchtoolpy.txt
Windows offline Discovery While Discovery : <Folder_Where_Winchtoolpy_is_copied>\DiscoveryLogs\winchtoolpy.txt
While creating Zip:<Folder_Where_Winchtoolpy_is_copied>\DiscoveryLogs\archive.log.<somenumber>
Zip Present at : <Folder_Where_Winchtoolpy_is_copied>\DiscoverData\result<somenumer>.zip
Windows Netwatch NetMon Utility : <UserHomeDir>\.ch_netwatch_<someNumber>\odNetMonlog_<Date>.txt
NetMon Utility data transfer: <UserHomeDir>\.ch_netwatch<someNumber>\DiscoveryLogs\winchtoolpy_netwatch_<someNumber>.log

II. Tranform Logs

a. From OmniDeq UI

Similar to the discover logs, you can access the transform logs from the OmniDeq UI. Follow these steps:

  1. Navigate to the project in OmniDeq UI using your browser.
  2. Click on Settings in the upper-right corner.
  3. Select OmniDeq Logs. All service logs, including transform logs linux, will be listed here.
  4. Click Download Logs for the specific service(Transform-logs-linux).

b. From Host/Application VMs and Buildboxes

Note:
Transform logs are not directly available on the VMs. However, artifacts generated during the transformation process can be found on both the Host/Application VMs and the Buildboxes. Use these artifacts for troubleshooting.

i. Transform Artifacts from Linux Application Host
    /opt/.ch-tools/data/transform/prepare/<someNumber>/<someNumber>/<ProfileNameVersion>.<someNumber>

Component request confirmation

ii. Transform Artifacts from Linux Buildbox
    /opt/.ch-tools/data/transform/prepare/<someNumber>/<someNumber>/<ProfileNameVersion>.<someNumber>

Component request confirmation

iii. Transform Artifacts from Windows Application Host

Component request confirmation

iv. Transform Artifacts from Windows Buildbox

Component request confirmation