|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #62828 Need documentation for access.format tokens
Submitted: 2012-08-15 13:52 UTC Modified: 2018-03-28 11:36 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: porjo38 at yahoo dot com dot au Assigned:
Status: Verified Package: FPM related
PHP Version: Irrelevant OS: Centos Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: porjo38 at yahoo dot com dot au
New email:
PHP Version: OS:


 [2012-08-15 13:52 UTC] porjo38 at yahoo dot com dot au
Using php-fpm compiled from php-5.4.5 source:

The %R flag used with the access.format directive logs the IP of the proxy server that initiated the FastCGI connection. It would be good to have the option to also log the IP address of the client (as set in the REMOTE_ADDR environment variable)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-28 06:29 UTC] d at tucny dot com
Not sure when this became an option, and I realise this is a very old request, but, it is still open, as such... %e can be used for this.

e.g. %{REMOTE_ADDR}e somewhere in the access.format

Working on PHP-FPM 5.4.16 on CentOS 7
 [2018-03-28 11:15 UTC]
-Summary: php-fpm - include REMOTE_ADDR in access log +Summary: Need documentation for access.format tokens -Status: Open +Status: Verified -Type: Feature/Change Request +Type: Documentation Problem -PHP Version: 5.4.5 +PHP Version: Irrelevant
 [2018-03-28 11:15 UTC]
Looks like %{}e has always been there. I don't see any docs for the options though.

%{total|user|system}C = CPU usage, %C=total
%{seconds|mili|miliseconds|micro|microseconds}d = request time, %d=seconds (yes, milliseconds is misspelled)
%{NAME}e = environment variable or '-'
%m = REQUEST_METHOD or '-'
%{bytes|kilo|kilobytes|mega|megabytes}M = memory usage, %M=bytes
%n = pool name or '-'
%{NAME}o = outgoing header or '-'
%p = PID
%P = parent PID
%Q = question mark if QUERY_STRING is present
%R = remote address or '-'
%s = response code
%{FORMAT}t/T = time formatted using strftime, %t/%T implies "%d/%b/%Y:%H:%M:%S %z"

 [2018-03-28 11:36 UTC]
Fixing the typo is at
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Mar 25 23:03:40 2023 UTC