Viewing your application logs on Cloudways is a great way for you to find errors, debug problems, troubleshoot application-level issues and maintain your website’s health. It can also show other information like web requests, the status of requests the IP addresses of visitors, pages viewed, user-agent(s), PHP processes, and more.
The logs of your application on Cloudways can be accessed without too much trouble. They can be accessed through the platform itself, or remotely through an SSH/SFTP. However, the value is that you Cloudways have made it available through the platform, which is the most simple option and not available on many other hosting systems.
It is important to note that Cloudways will only display the 1000 most recent entries within the log. The majority of users this is enough to identify the problem/get the information they’re looking for. However, if you’re looking for older records or perhaps you have a very busy website, then you need to access the previous logs using SSH/SFTP.
Step 1 – Log In
The first step is to log into your Cloudways dashboard using your credentials.
Step 2 – Target Server
Now you need to click on the ‘Servers’ tab within the top menu bar. Then choose the target server where the application is that you would like to see the logs from.
Step 3 – Access the Application
Click on the www icon that is located on the right-hand side of the server tab. This will bring up a dropdown list of the applications deployed on the server, select the application that you would like to use.
Step 4 – Monitoring
On the next screen, you will want to move to the left menu bar and click on the 'Monitoring' option to expand the options available.
Step 5 – Logs
Now you can click on the ‘Logs’ option. This will expand this set of options as well. Now you will see two options for you: ‘Access Logs’ and ‘Error Logs’.
Clicking upon the ‘Access Logs’ will display the most recent access log entries of the applications. The default option here is that it will show a limited amount, but there is a slider where you can see more. There are also tabs that allow you to access other logs like PHP and NGINX.
If you’re looking for a specific log entry, you can use the search box to find that. And there is a filter that can apply conditions to help you within your search. This can include you entering in error codes. If you want to find the most recent logs again, click on the refresh button.
If you want to see the most recent Apache error logs, then you need to click on the ‘Error Logs’. This area has the same sort of functionality as the ‘Access Logs’. There is a search area, filter and more.
Both sets of logs are easy to use and this system is more accessible than others.
Final Word: How to View Application Logs on Cloudways
Viewing logs on Cloudways is really easy to do and a much better process than on other platforms. You can log into your Cloudways dashboard, access your server and see the logs without needing to access SSH/SFTP at all.