Log files are available in MyKinsta and can also be downloaded via SFTP. These files can be helpful when troubleshooting errors or tracking down other issues on your site. Some logs can be viewed in MyKinsta, and additional logs can be downloaded via SFTP.
View Logs in MyKinsta
Three types of log files are available in MyKinsta: error.log, kinsta-cache-perf.log, and access.log.
- In MyKinsta, go to Sites and select the site you want to view logs for.
- Click on the Logs tab to open the Log viewer page.
- The first log file shown is error.log. Click on the dropdown menu where the log file name is shown to switch to another log file.
- You can also use the search box next to the log file name to search for text in the current file.
Download Logs With SFTP
In addition to the error.log, kinsta-cache-perf.log, and access.log files, you can also download your cache-purge.log and mail.log files using SFTP.
- Connect to your site with SFTP.
- Navigate into the logs folder/directory.
- In that folder, you’ll find your log files. You can download any or all of these.
- Once you’ve downloaded the log file(s), you can open any of those with your preferred text editor or import them into a log viewing application if you prefer. For files that are compressed (*.gz files), you’ll first need to unpack/uncompress those before opening with a text editor.
Log File Descriptions
For each log file, the file without a date at the end of the name contains data for the current day. Copies from previous days are named with the date of the following day, and the oldest 3 files are compressed and stored as *.gz files
- access.log: This file is a log of Nginx requests for the current day.
- error.log: Specific errors, including PHP errors, are logged here.
- kinsta-cache-perf.log: Cache header status (hit, miss, or bypass) for requests are recorded here.
- cache-purge.log: This file contains a log of requests to cache clearing URLs (including cache clearing URLs configured in the Kinsta MU Plugin).
- mail.log: A record of the number of emails sent from your site each hour. Each line will look something like this:
[22/Sep/2021:21:56:01 +0000] "H" 1 "no_action"
- Format is:
[time] "H" [count] "no_action"
“no_action”are constants that can be ignored.
- Format is: