Skip to main content

Collect logs from services

You can collect all logs from services and zip them into a folder, which can be useful in case of incidents when you need to provide logs to the WorkFusion Support Service. Log records are kept in the common_nfs_share/logs directory and organized as follows:

common_nfs_share > logs > hostname > service > logs

Example:

$ ll /opt/workfusion/shared/logs/tmp-wfan-10024-master1.wflab.io/automl-gateway-service
-rw-rw-r--. 1 wfuser wfuser 8035 Nov 8 11:48 automl-gateway-service-2021-11-04.0.log.json.zip
-rw-rw-r--. 1 wfuser wfuser 638 Nov 5 07:56 automl-gateway-service-startup.log.zip
-rw-rw-r--. 1 wfuser wfuser 6359 Nov 5 07:57 automl-gateway-service.log.json.zip

To collect all service logs from all Linux hosts, on any MASTER server, run the following commands:

$ export ANSIBLE_PRIVATE_KEY_FILE='/path/to/ssh-private-key'
$ export ANSIBLE_VAULT_PASS='your-ansible-vault-pass'

# default installation dir:
$ cd /opt/workfusion/wf_installer
$ ./install.sh configure logs

To collect all service logs from a given host, on any MASTER or AGENT server, run the following commands:

# default tools dir:
$ cd /opt/workfusion/tools
$ ./collect-linux-logs.sh