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.
Note for log forwarding users
Acquia’s log forwarding feature adds information to the beginning of each line that is forwarded to an external service. For more information, see File formats in forwarded log files.
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 |
| The date and time of the message |
1 |
| The log level of the message |
2 |
| The process ID ( |
3 |
| URL requested |
4 |
| The User-Agent |
5 |
| Vhost |
6 |
| The ip address of the original requester |
7 |
| Request ID |
8 |
| 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.