Log files track and record your site's activity to help you find, debug, and isolate current or potential problems on your site. Each environment (Multidev, Dev, Test, and Live) has individual log files, which can be obtained via SFTP. Application-level logs can be accessed directly through Drupal. You can use New Relic® Performance Monitoring in conjunction with logs to help diagnose and fix errors and performance bottlenecks.
The server timezone and log timestamps are in UTC (Coordinated Universal Time).
Log files are destroyed during appserver migration (a standard part of regular platform maintenance). Log deletion occurs because the log files are appserver-specific. Consider automating the collection of logs regularly to maintain historical log data.
Fastly on Pantheon provides additional features if you are looking for log or media storage integration solutions.
|error.log||n/a||A legacy file that usually advises about an nginx upgrade or modifying server modules.|
|newrelic.log||n/a||New Relic log; check if an environment is not logging.|
|nginx-access.log||Up to 60 days of logs||Web server access log. Do not consider canonical, as this will be wiped if the application container is reset or rebuilt. See Parsing nginx Access Logs with GoAccess.|
|nginx-error.log||1MB of log data||Web server error log.|
|php-error.log||1MB of log data||PHP error log containing warnigns and errors. Fatal errors will have stack traces and are also shown in the Dashboard. Refer to PHP Errors and Exceptions for more information.|
|php-slow.log||1MB of log data||This is a log of PHP-FPM generated stack traces of slow executions, similar to MySQL's slow query log. Refer to PHP Slow Log for more information.|
|php-fpm-error.log||1MB of log data||This is a log of errors in the FastCGI Process Manager and can be useful in finding why processes were terminated.|
|mysqld-slow-query.log||10MB of log data||Log of MySQL queries that took more than 120 seconds to execute. Located in the database's |
|mysqld.log||1MB of log data||Log of established MySQL client connections and statements received from clients. Also Located in the database's |
|mysql-bin.0001||n/a||MySQL binary logs. Located in the database's |
Rotated log files are archived within the
/logs directory on application containers and database servers. The directory might contain sub-directories for services like Nginx and PHP, or it may log files directly in
/logs For example:
Directly within the