Req #80428 [ReO]: PHP-FPM : Is there an option to suppress /ping from logs
| From: | bukka@php.net | Date: | Wed, 09 Mar 2022 22:13:14 +0000 |
| Subject: | Req #80428 [ReO]: 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-240284@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
Updated by: bukka@php.net
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:
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.
Previous Comments:
------------------------------------------------------------------------
[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%
------------------------------------------------------------------------
[2022-02-27 08:34:12] heavy-traffic-website at yopmail dot com
nikic@php.net > The patch has been given. Could you understand the need ?
Anybody from PHP Team can take this improvement seriously ?
We can discuss, however, this is a need from many of us, SysAdmins.
Our file logs are too bigger, useless to expanse logs for that purpose.
------------------------------------------------------------------------
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