To review the event log of your website, you can follow these steps:
1- Access SW Panel and go to the Dashboard of the corresponding service using the upper search engine:
2- Write the name of the service that you want to examine the logs. The autocomplete function will find the service before you finish typing the name. When it appears in the drop-down, click on it.
3- Once located in the Dashboard of your service, click on the icon marked in the image to manage the Web Logs of this service.
Then you will see four different types of files, Apache Access, Apache Error, Nginx Access and Nginx Error:
apache_access_XXXXXXXX.log - The server stores in the access log information about all the requests it processes, the location of the log file and the content that is logged.
apache_error_XXXXXXXX.log- The Apache error log is where information about any errors or anomalies it finds is logged. Many of the "errors" in Apache logs are usually minor, such as a visitor requesting a file that does not exist. Apache also uses error logs to record warnings that may indicate a potential problem with a particular event or configuration.
nginx_access_XXXXXXXX.log - In this file you will see the requests that the Nginx service has made against your web service. (cache)
nginx_error_XXXXXXXX.log - The server stores in this error log the information about all the requests of the Nginx service with error, against your web service.
The way to visualize any of the 4 types of logs, which we have just discussed, is the same as indicated in the following example.
4- In the file that you need to review, click on the drop-down on the right, marked with a red rectangle.
5- Two options will appear: "Download" or "View Log from SW Panel".
6- If you open it through the SW Panel, the appearance will be similar to this.
7- In the option "Data to display", you can choose between the following options to filter and search only for the specific code.
All Log lines: -> Default option.
Only lines Result Ok - (Status 200) --> Filter only lines that contain status 200, the request has been successful
Only lines Redirect Result - (Status 300) --> Filters only lines that contain status 300, equivalent to redirects.
Only lines Result Client Error - (Status 400) --> Filters only lines that contain status 400, equivalent to client errors.
Only lines Result Server Error - (Status 500) --> Filters only lines that contain status 500, equivalent to server errors.
8- You can also choose the maximum number of lines to display, by default they are 5000, although you can modify it. You just have to write in the box the number of lines you want and press the "Enter" button.
If you have any questions about it, feel free to use our support wall.