Collecting HAF Logs in One-Click Mode
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.
Host nodes do not support log collection.
The configuration file of log_directory on offload nodes is haf.conf in the running path, for example, /home/omm/haf-install/haf-target/etc/haf.conf.
- Run the following command on the offload node:
/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
One-click log collection and packaging
Run Directory
/
Run Command
/home/omm/haf-install/haf-target/tools/haf-tool collect

- Select File Transfer and click Add a Task.
Before using SmartKit to download logs, you must obtain customers' authorization.
- 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.