Viewing the Logs from an On-Premises Code Scanner
You can access the logs from the on-premises code scanner to troubleshoot any issues with the IaC scan.
Before you begin:
-
Connect to the virtual machine or system where the on-premise scanner is hosted via SSH.
To view the code scanner logs:
-
To view all the logs, use the following command:
Copysudo docker-compose logs | grep 'siac-bot\|etcd'
-
To append all the logs to a text file, use the following command:
Copysudo docker-compose logs --no-color >> on-premise-scanner-logs.txt
-
To view the last 100 lines of the logs, use the following command:
Copysudo docker-compose logs -f --tail="100" | grep 'siac-bot\|etcd'
-
To view the last 100 lines of the logs and copy them to a text file, use the following command:
Copysudo docker-compose logs --no-color -f --tail="100" | grep 'siac-bot\|etcd' |&tee on-premise-scanner-logs.txt
-
To view all the errors in the logs, use the following command:
Copysudo docker-compose logs | grep 'siac-bot\|etcd' | grep -i error