Information for: DEVELOPERS   PARTNERS

FPM access logs

The FPM access log records requests handled by FPM’s process management in PHP. It is closely related to the following error logs:

  • PHP error log: Records application-level issues encountered while processing a request
  • FPM error log: Records server-level issues with the management of PHP processes from web requests only

For a list of the log files handled by Acquia Cloud, including accessing these log files, log file retention, and their locations, see About Acquia Cloud logging.

Note for log streaming 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 FPM error log:

- -  25/Sep/2018:17:02:35 +0000 "GET /index.php" 200 memory_kb=6144 %cpu=9.16 duration_ms=218.423 request_id="v-00000000-1111-2222-3333-444444444444"

Each of the items in the FPM error log is noted in the following table, along with its description:

Position Data Description
0 - The remote IP address, usually -.
1 - Unused field. Always displays -.
2 (blank) Remote user, if any. (The example line is blank for this value.)
3 25/Sep/2018:17:02:35 +0000 The date and time the request was received, in the following format: %d/%b/%Y:%H:%M:%S %z
4 "GET /index.php" The request method and request URI. If a query string exists, the request URI is followed by a question mark and the query string.
5 200 The HTTP status code sent from the server to the client. Production environments don’t display full information for HTTP 5xx status codes.
6 memory_kb=6144 The peak amount of memory PHP needed, in kilobytes, to complete this request.
7 %cpu=9.16 Percent of user and system CPU needed to complete this request.
8 duration_ms=218.423 The amount of time needed, in milliseconds, to serve this request.
9 request_id="v-00000000-1111-2222-3333-444444444444" A unique ID attached to this request by the load balancer, which appears in several Acquia Cloud log files. For more information, see Using HTTP request IDs.