Collecting HAF Logs with One Click
The one-click log collection function is used to pack all logs in log_directory. The packed logs are stored in /home/omm/haf-install/haf-target/logs/log_collection.tar by default.
The log collection function is not supported on host nodes or those offload nodes with the HAF library.
The log_directory configuration for offload nodes with the HAF service is in the etc/haf_offload.conf file in the installation path, for example, /home/omm/haf-install/haf-target/etc/haf_offload.conf.
To collect logs on offload nodes with the HAF service, run the following command:
/home/omm/haf-install/haf-target/tools/haf-tool collect
Collect successfully, the output package is /home/omm/haf-install/haf-target/logs/log_collection.tar
The following uses SmartKit log collection on an offload node as an example.
- Select Command Execution and click Add a Task.
- Edit the task content and click Save.
Parameter
Description
Task Name
Collecting logs
Task Description
Collecting and packaging logs with one click
Run Directory
/
Run Command
/home/omm/haf-install/haf-target/tools/haf-tool collect

- Select File Transfer and click Add a Task.
- Edit the task content and click Save.
Parameter
Description
Task Name
Collecting and packing logs to the local PC.
Transfer Direction
From Remote to Local
Local Path
Directory where the local installation package is stored
Remote Path
/home/omm/haf-install/haf-target/logs/log_collection.tar
The root directory of logs stored in the remote path is the value of the log_directory field in the haf_target_install.conf file during installation. The default value is haf-target/logs.