Req #80428 [Com]: PHP-FPM : Is there an option to suppress /ping from logs
| From: | post-modern-php at yopmail dot com | Date: | Fri, 28 Oct 2022 17:16:45 +0000 |
| Subject: | Req #80428 [Com]: PHP-FPM : Is there an option to suppress /ping from logs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-242698@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80428&edit=1
ID: 80428
Comment by: post-modern-php at yopmail dot com
Reported by: heavy-traffic-website at yopmail dot com
Summary: PHP-FPM : Is there an option to suppress /ping from
logs
Status: Re-Opened
Type: Feature/Change Request
Package: FPM related
Operating System: Debian 12
PHP Version: 8.0.14
Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
It would be great if this could be also implemented for the
/status page, as it may
also be used to determine the liveness or readiness of php-fpm (ex: https://github.com/renatomefi/php-fpm-healthcheck
)
Previous Comments:
------------------------------------------------------------------------
[2022-03-09 22:13:14] bukka@php.net
Although after re-reading the issue and this bug, here's not that much extra info. Anyway
doesn't really matter if it's open or not - I'm keeping a note of this and update it
here once this is fixed.
------------------------------------------------------------------------
[2022-03-09 21:40:34] bukka@php.net
Keeping this open as it contains more info and it was first.
------------------------------------------------------------------------
[2022-03-07 11:56:24] cmb@php.net
Closing as duplicate of <https://github.com/php/php-src/issues/8174>.
------------------------------------------------------------------------
[2022-03-06 14:30:07] heavy-traffic-website at yopmail dot com
The following patch has been added/updated:
Patch Name: php-fpm-ping_dontlog
Revision: 1646577007
URL: https://bugs.php.net/patch-display.php?bug=80428&patch=php-fpm-ping_dontlog&revision=1646577007
------------------------------------------------------------------------
[2022-02-27 08:43:12] heavy-traffic-website at yopmail dot com
Description:
------------
I have PHP-FPM, I want generate access logs but, not /ping logs when :
ping.path = /ping
I am looking for an option to disable /ping access from the logs, because I have some haproxy
servers that ping and it produce quantity of logs i don't need.
May a new config entry could prevent it ?
suggestion ( ping.log = no ) [default]
$> tail /var/log/php8/mypool/access.log
- - 27/Nov/2020:02:12:50 +0100 "GET /ping" 200 - 0.241 2048 0.00%
- - 27/Nov/2020:02:12:54 +0100 "GET /ping" 200 - 0.197 2048 0.00%
- - 27/Nov/2020:02:12:57 +0100 "GET /ping" 200 - 0.238 2048 0.00%
- - 27/Nov/2020:02:12:58 +0100 "GET /ping" 200 - 0.309 2048 0.00%
- - 27/Nov/2020:02:13:01 +0100 "GET /ping" 200 - 0.258 2048 0.00%
- - 27/Nov/2020:02:13:04 +0100 "GET /ping" 200 - 0.190 2048 0.00%
- - 27/Nov/2020:02:13:04 +0100 "GET /ping" 200 - 0.166 2048 0.00%
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=80428
--
Edit this bug report at https://bugs.php.net/bug.php?id=80428&edit=1