Getting Logs from Virtual Appliance
Introduction
Logging is a crucial aspect of maintaining and troubleshooting a Speech platform. This documentation article outlines two methods for retrieving log files from our platform - one using the graphical user interface (GUI) provided by the File Browser app and the other via a command-line interface using SSH.
Method 1: Using File Browser GUI
- Access the File Browser:
- Open the Web Browser and navigate to
http://<IP_ADDRESS_OR_HOSTNAME>/filebrowser/files
.
- Open the Web Browser and navigate to
- Select log Folder:
- In the File Browser, highlight the
log
folder by single click.
- In the File Browser, highlight the
- Download Logs:
- Initiate the download process by clicking the highlighted 'down pointing arrow' button in the upper part of the screen.
- A dialogue window will pop up.
- Save the Logs:
- Select the
zip
ortar.gz
format. - Choose a location on your local machine to save the downloaded log files.
- Select the
Method 2: Using SSH Command-Line Interface
If, for any reason, the File Browser is not available, you can use the command-line interface with SSH to retrieve the logs.
- Create a ZIP of Logs:
- Open a terminal or command prompt on your local machine.
- Use the following command to connect to the Linux virtual machine via SSH
and create a compressed backup of the logs:
ssh root@<IP_ADDRESS_OR_HOSTNAME> "cd /data && tar -czvf logs_backup.tar.gz log"
- Enter the required credentials when prompted.
- This command connects to the machine and creates a compressed file named
logs_backup.tar.gz
containing thelog
folder.
- Transfer Files to Local Machine:
- After creating the backup, use the following command to transfer the
compressed file to your local machine using SCP:
scp root@<IP_ADDRESS_OR_HOSTNAME>:/data/logs_backup.tar.gz "c:\logs_backup"
- Replace
"c:\logs_backup"
with the desired local directory where you want to save the log files backup.
- After creating the backup, use the following command to transfer the
compressed file to your local machine using SCP:
- Verify Transfer:
- Check the specified local directory to ensure that the
logs_backup.tar.gz
file has been successfully transferred.
- Check the specified local directory to ensure that the
Conclusion
By following either the GUI-based approach through the File Browser or the command-line approach via SSH, you can efficiently retrieve log files from our platform. Choose the method that best fits your requirements or based on the availability of the File Browser.