php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81501 Log request information in slowlog
Submitted: 2021-10-04 13:46 UTC Modified: -
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: wedwards at cyberfusion dot nl Assigned:
Status: Open Package: FPM related
PHP Version: 7.4.24 OS: Debian 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wedwards at cyberfusion dot nl
New email:
PHP Version: OS:

 

 [2021-10-04 13:46 UTC] wedwards at cyberfusion dot nl
Description:
------------
When slowlog is enabled, and PHP-FPM announces it's going to log to the slowlog, some request information is written to the log message: proc.request_method, proc.request_uri, and proc.query_string. Code: https://github.com/php/php-src/blob/5b01c4863fe9e4bc2702b2bbf66d292d23001a18/sapi/fpm/fpm/fpm_request.c#L263

However, this information is not logged to the slowlog itself: https://github.com/php/php-src/blob/5b01c4863fe9e4bc2702b2bbf66d292d23001a18/sapi/fpm/fpm/fpm_php_trace.c#L52 . It would be very useful to log the request information to the slowlog as well, as it'd make debugging requests that were proxied to PHP-FPM easier.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2022-12-29 09:12 UTC] Michelle1698Jones at gmail dot com
The slow query log consists of SQL statements that take more than long_query_time seconds to execute and require at least min_examined_row_limit rows to be examined. The slow query log can be used to find queries that take a long time to execute and are therefore candidates for optimization. However, examining a long slow query log can be a time-consuming task. To make this easier, you can use the mysqldumpslow command to process a slow query log file and summarize its contents. See Section 4.6.8, “mysqldumpslow — Summarize Slow Query Log Files”.

(https://www.wellcaremedicare.net/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC