The Apache error log (error.log
) records any Apache-level issues, which are usually general infrastructure issues, including capacity problems, .htaccess
problems, and missing files.
For a list of the log files handled by Cloud Platform, including accessing these log files, log file retention, and their locations, see About Cloud Platform logging. You can also review information about how to streaming Apache log entries in real time from your browser.
Parsing the log file
The following line is a representative example of the data written into your website’s Apache per-site error log:
[Sun Feb 09 18:30:09 2020] [error] [pid=16573] "http://www.example.com"
"Mozilla/5.0 (iPhone; CPU iPhone)" vhost=example01live.prod.example-sites.com
forwarded_for="10.0.0.1" request_id="v-60ffab00-2fe9-11ea-972b-22000ab832c9"
hosting_site=example01live AH01630: client denied by server configuration:
/var/www/html/example01live/docroot/example.sh
Each of the items in the Apache per-site error log is noted in the following table, along with its description:
Position | Data | Description |
---|---|---|
0 | [Sun Feb 09 18:30:09 2020] | The date and time of the message |
1 | [error] | The log level of the message |
2 | [pid 16573] | The process ID (pid ) handling this request |
3 | "http://www.example.com" | URL requested |
4 | "Mozilla/5.0 (iPhone; CPU iPhone)" | The User-Agent |
5 | vhost=example01live.prod.example-sites.com | Vhost |
6 | forwarded_for="10.0.0.1" | The ip address of the original requester |
7 | request_id="v-ed8389a2-2d21-11ea-ba54-8b7e74d777e0" | Request ID |
8 | hosting_site=example01live | Hosting Site |
9 | All other information in the line | The message, which will vary from line to line |
For more information about the expected format of Apache error logs, see Apache’s documentation.