-
Notifications
You must be signed in to change notification settings - Fork 7.9k
fpm: Implement access log filtering #8214
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
Conversation
e41347c
to
1ce05b0
Compare
From the very quick look, it's looking good. I was initially thinking something more in line with |
@bukka do you happen to have any POST-doing tester.inc versions lying around somewhere to save me a bit of time? |
do you mean something like
|
03dcddd
to
c042a61
Compare
nah I meant actually passing STDIN, wasn't too hard to work out anyway so just pushed it up and think I'm done with this |
Just popped into my head here whilst thinking about something unrelated, but - since proc->request_uri actually gets set to script_name, because that is what's read into PHP_SELF sapi->register_variables - is it the right thing to check? I know at least on servers I admin I put %{REQUEST_URI}e in the access.format for this reason. From the perspective of fpm_log.c should %r / request uri be redefined from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good.
I would probably default to |
c042a61
to
1cffae6
Compare
@maaarghk Just a reminder that a feature freeze is on 5th July so it would be good to add this potentially. The comments are just NIT's so will try to give it a try over the weekend and see if we can merge it and I can additional fix them possibly. Although if you want to fix them before that, it would be appreciated! |
1cffae6
to
24f81b2
Compare
Thanks, bot should be now fixed. Will try to give it a try tomorrow. |
If you could squash it to a single commit in the meantime, that would be great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried the changes and all looks good to me. Just added few minor suggestions that you are free to ignore if you are too busy. I will merge it in the next few days.
One correction that the feature freeze is actually on 19th. I confused it with a deadline for RFCs so there is a bit more time. |
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
24f81b2
to
2ecc7ca
Compare
Merged in 327bb21 . Thanks! |
Fixes GH-8174, #80428
Before merging I think it could be doing with more tests: