Req #80428 [Com]: PHP-FPM : Is there an option to suppress /ping from logs

From: Date: Fri, 27 Nov 2020 11:16:24 +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-230676@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: heavy-traffic-website 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: Open Type: Feature/Change Request Package: *Configuration Issues Operating System: Debian 11 PHP Version: 8.0.0 Block user comment: N Private report: N New Comment: for one week logs, on each PHP-FPM server, i have 278.519 useless lines: $> grep "/ping" /var/log/php8/mypool/access.log{,.1} | wc -l 278519 Moreover I have almost 2% of logs with %C%% (user + system CPU, not tested separately) that display absurdity: $> grep "0.00%$" /var/log/php8/mypool/access.log{,.1} | wc -l 277059 $> grep -v "0.00%$" /var/log/php8/mypool/access.log{,.1} | wc -l 3974 $> grep -v "0.00%$" /var/log/php8/mypool/access.log{,.1} | grep "/ping" | head - - 19/Nov/2020:22:57:09 +0100 "GET /ping" 200 - 0.161 2048 6211.18% - - 19/Nov/2020:22:57:44 +0100 "GET /ping" 200 - 0.170 2048 5882.35% - - 19/Nov/2020:23:04:09 +0100 "GET /ping" 200 - 0.171 2048 5847.95% - - 19/Nov/2020:23:06:03 +0100 "GET /ping" 200 - 0.101 2048 9900.99% - - 19/Nov/2020:23:12:00 +0100 "GET /ping" 200 - 0.137 2048 7299.27% - - 19/Nov/2020:23:17:27 +0100 "GET /ping" 200 - 0.130 2048 7692.31% - - 19/Nov/2020:23:18:13 +0100 "GET /ping" 200 - 0.139 2048 7194.24% - - 19/Nov/2020:23:19:47 +0100 "GET /ping" 200 - 0.138 2048 7246.38% - - 19/Nov/2020:23:23:10 +0100 "GET /ping" 200 - 0.157 2048 6369.43% - - 19/Nov/2020:23:28:55 +0100 "GET /ping" 200 - 0.215 2048 4651.16% Previous Comments: ------------------------------------------------------------------------ [2020-11-27 02:04:47] heavy-traffic-website at yopmail dot com Type #bug changed to #feature ------------------------------------------------------------------------ [2020-11-27 01:43:02] 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% ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80428&edit=1

« previous php.bugs (#230676) next »