This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

How to Check Logs via SSH/SFTPMay 26, 2017

 

In this KB

  • Checking logs via SSH
  • Checking logs via SFTP

 

This support article will go over how you can view your web application logs through SSH or SFTP. Log files contain valuable information to help you troubleshoot and fine-tune your applications.

Check Logs via SSH

Step 1: Access your Server via SSH

First, you need to connect to your server via SSH and we have explained the process here.

Step 2: Check your Application Logs

Once you are connected, navigate to your application folder and you will find a logs subfolder that contains all the logs.

Inside the logs folder, you will find all the Apache and Nginx Access / Error logs. You can view them using the command tail or cat followed by the log file name as seen in the screenshots below.

ssh_logs

Check Logs via SFTP

Step 1: Access your Application via SFTP

You need to connect to your application via SFTP and the process is explained here.

Step 2: Check your Application Logs

Once you have accessed your server via SFTP, you need to repeat the process described above for SSH (so navigate to application folder, logs …).

sftp_logs

That’s it. You have learned how to access your server logs via SSH/SFTP.

Please insert Content
Have Questions? Ask From Our Helpful Community

3 Responses

  1. bob says:

    Screenshots are completely not readable. Small font.

  2. Philippe Schweitzer says:

    You can checkout dbitail.

    A Java tool I created, able to read local and distant log files using SSH.
    It is fairly simple to use.

    Some more explanations:
    https://github.com/pschweitz/DBITail/wiki

    Just download version corresponding to your operating system, of native jar release executable within your Java Runtime (requires java 8_40 or higher):

    https://github.com/pschweitz/DBITail/releases

    You can find a complete documentation (embedded with and I Github’s page as well)

    Philippe

Do you still need help?

Our Technical Support team is always at work.