-
Notifications
You must be signed in to change notification settings - Fork 7.8k
PHP-FPM : Option to suppress "/ping" from logs -- patch file given #8174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Consider to submit a pull request for better visibility. |
Julien75013
added a commit
to Julien75013/php-src
that referenced
this issue
Mar 9, 2022
maaarghk
added a commit
to maaarghk/php-src
that referenced
this issue
Mar 21, 2022
Fixes phpGH-8174, #80428
maaarghk
added a commit
to maaarghk/php-src
that referenced
this issue
Mar 29, 2022
Fixes phpGH-8174, #80428
maaarghk
added a commit
to maaarghk/php-src
that referenced
this issue
Mar 29, 2022
Fixes phpGH-8174, #80428
maaarghk
added a commit
to maaarghk/php-src
that referenced
this issue
Apr 6, 2022
Fixes phpGH-8174, #80428
maaarghk
added a commit
to maaarghk/php-src
that referenced
this issue
Jul 1, 2022
Fixes phpGH-8174, #80428
maaarghk
added a commit
to maaarghk/php-src
that referenced
this issue
Jul 4, 2022
Adds a setting "access.suppress_path" to php-fpm pool configurations which causes successful GET requests to the specified URIs to be excluded from the access log. This is to reduce noise caused by automated health checks. Requests with response codes outwith the successful range 200 - 299, requests made with query parameters and requests which have a Content-Length other than 0 will ignore this setting as a security precaution. Closes phpGH-8174, #80428 [1] [1] https://bugs.php.net/bug.php?id=80428
@bukka could you apply that patch for 8.1 branch and release it? |
@xepozz 8.1 is just for bug fixes and this is a feature so it cannot be applied there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
SysAdmin and DevOps don't need to have logs when healthcheck are set up for checking the availability.
To understand why this is relevant, see how today's softwares performs in many high-load environments.
Apache permit full conditionnal logs :
Haproxy permit some conditionnal logs :
The actual saving of data space could be several megas, for each host. For thousands of servers, it can be a significant saving.
So, we need an option to disable logs when the "/ping" path is reached.
Main thread from bugs.php.net : https://bugs.php.net/bug.php?id=80428
Patch file was issued in 2020 but has never been seen : php-fpm-ping_dontlog.txt
The text was updated successfully, but these errors were encountered: