Loading...

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 infrastructure-level issues with the management of PHP processes from web requests only

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.

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:

PositionDataDescription
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.)
325/Sep/2018:17:02:35 +0000The 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.
5200The HTTP status code sent from the infrastructure to the client. Production environments don’t display full information for HTTP 5xx status codes.
6memory_kb=6144The peak amount of memory PHP needed, in kilobytes, to complete this request.
7%cpu=9.16Percent of user and system CPU needed to complete this request.
8duration_ms=218.423The amount of time needed, in milliseconds, to serve this request.
9request_id="v-00000000-1111-2222-3333-444444444444"A unique ID attached to this request by the load balancer, which appears in several Cloud Platform log files. For more information, see Using HTTP request IDs.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation