Overview
Downloading logs from KC-Brainware server Brains is currently different from SL Brains. In order to download logs from the docker brains, you will need to download the container logs directly from the docker service
Downloading Docker Logs
The Kramer-UI where logs downloaded will not work with the server Brains. The process is a little bitt different and explained below
Identify the Docker container being used for a Brain
- kramer docker status brain
As explained above, this command will show all Brains currently running on the machine. The Brain ID is shown along with the IP address
Once you know the Brain ID, you will need to execute the following command to find the container ID
docker container list
Once you have both the Brain ID and Container ID, you can download the log for your Brain
docker logs >& name_of_file.log
- The last portion of the above command creates the log file on the server machine. You can entitle the name_of_file.log file with any unique name
- Executing ls on the KCServer will show files and directories that exist within the currently opened directory. The above example shows the home directory after creating the log file
Transferring log file to local machine
- This process requires SSH access to your personal machine. If you do not know if your machine is using SSH, you will need to Google how to enable SSH on your personal machine
scp name_of_file.log username_of_personal_machine@ipAddress_of_personal_machine:~/Documents
The above command requires:
- Username of personal machine
- IP address of personal machine
- Directory for the file transfer to place the log file
- Password of personal machine (user will be prompted to enter after executing above command)
Post your comment on this topic.