Troubleshooting - Server Logs - Kinsta® Docs (original) (raw)

You can view log files within MyKinsta and download additional logs via SFTP. Log files cannot be manually cleared and are retained for up to 4 days. These files are valuable for troubleshooting errors and identifying other issues on your site.

If you have a Single 1.25M or above, WP 60 or above, or an Agency plan, you can reach out to our Support Team to add a Splunk Forwarder to your site. This tool indexes your logs and sends them to Splunk, a third-party platform designed for easy monitoring, searching, analysis, and visualization of log data. To use Splunk, you need a Splunk account with access to the Splunk Cloud Platform.

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 for which you want to view logs. Click on the Logs tab to open the Log viewer page. Use the search box to find text in the current file.

error.log

This file records PHP errors and warnings generated by your WordPress site. It can include:

Use it for debugging broken pages, white screens of death, and plugin/theme issues.

error.log file in MyKinsta Log viewer.

error.log file in MyKinsta Log viewer.

kinsta-cache-perf.log

This file logs cache performance details specific to Kinsta’s caching layer. It typically shows:

Use it to diagnose caching behavior, improve performance, or confirm whether pages are being cached correctly.

kinsta-cache-perf.log file in MyKinsta Log viewer.

kinsta-cache-perf.log file in MyKinsta Log viewer.

access.log

This is the web server access log, recording every HTTP request made to your site. It includes:

Use it for security auditing, traffic monitoring, locating 404 errors, and analyzing site access patterns.

access.log file in MyKinsta Log viewer.

access.log file in MyKinsta Log viewer.

Search and filter logs

If you’re looking for a specific log entry, start by filtering the logs by timeframe. Then add a search string to narrow down the results. All matching text is highlighted, allowing you to easily identify each relevant entry.

Search and filter your logs.

Search and filter your logs.

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.

  1. Connect to your site with SFTP.
  2. Navigate into the logs folder/directory.
  3. In that folder, you’ll find your log files. You can download any or all of these.
  4. Once you’ve downloaded the log file(s), you can open any of them with your preferred text editor or import them into a log viewing application if you prefer.

Log file descriptions

For each log file type, the file without a date at the end of the name contains data for the current day. Historical logs from previous days are named with the date of the following day. For example, an access.log file named access.log-2022-07-25-1658707208 contains logs from just after midnight July 24, 2022, until just before midnight July 25, 2022.

Log file formats

access.log

Each line will look something like this:

kinstahelptesting.kinsta.cloud 98.43.13.94 [22/Sep/2021:21:26:10 +0000] GET "/wp-admin/" HTTP/1.0 302 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Firefox/92.0" 98.43.13.94 "/wp-admin/index.php" - - 472 0.562 0.560

Format

Column descriptions

error.log

Each line will look something like this:

2019/06/17 15:29:57 [error] 55810#55810: *360896 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected end of file in /www/kinstahelptesting_610/public/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(213):eval()'d code on line 10" while reading response header from upstream, client: 126.100.65.37, server: kinstaexample.com, request: "POST /wp-admin/admin.php? page=edit-snippet&id=6 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php7.3-fpm-kinstahelptesting.sock:", host: "kinstaexample.com", referrer: "https://kinstaexample.com/wp-admin/admin.php?page=edit-snippet&id=6

Note: Some errors may be followed by a Stack trace, which provides more details about an error and is beneficial when debugging errors.

Format

UTC timestamp, severity level, error code, error ID, stderr message, client IP, site domain, HTTP/S request type, URI, protocol, upstream process handling request, interal host/port details, referrer URL

Column descriptions

kinsta-cache-perf.log

Each line will look something like this:

Format

Column descriptions

cache-purge.log

Each line will look something like this:

Format

Column descriptions

mail.log

Each line will look something like this:

[22/Sep/2021:21:56:01 +0000] "H" 1 "no_action"

Format

[time] "H" [count] "no_action"

Column descriptions