假设我有这个 PHP 错误日志:
$ cat php_logs
[20-Sep-2019 03:05:03 Europe/Rome] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 2621464 bytes) in /www/hello.php on line 1194
这些 Apache 访问日志:
$ cat access_logs
10.1.2.3 - - [20/Sep/2019:03:04:12 +0200] "GET /index.php HTTP/1.1" 200 7633
10.1.2.3 - - [20/Sep/2019:03:04:15 +0200] "GET /index.php HTTP/1.1" 200 9331
10.1.2.3 - - [20/Sep/2019:03:04:26 +0200] "GET /index.php HTTP/1.1" 200 9448
10.1.2.3 - - [20/Sep/2019:03:04:32 +0200] "GET /index.php HTTP/1.1" 200 7128
10.1.2.3 - - [20/Sep/2019:03:04:52 +0200] "GET /index.php HTTP/1.1" 200 9453
10.1.2.3 - - [20/Sep/2019:03:05:01 +0200] "GET /index.php HTTP/1.1" 200 9795
10.1.2.3 - - [20/Sep/2019:03:05:00 +0200] "GET /index.php HTTP/1.1" 200 10642
10.1.2.3 - - [20/Sep/2019:03:05:39 +0200] "GET /index.php HTTP/1.1" 200 9103
10.1.2.3 - - [20/Sep/2019:03:05:41 +0200] "GET /index.php HTTP/1.1" 200 6470
10.1.2.3 - - [20/Sep/2019:03:05:40 +0200] "GET /index.php HTTP/1.1" 200 8139
我如何才能了解与显示的错误相关的访问日志?我试图了解哪个请求导致了错误。这能确定吗?还是没有办法?我测试过这些致命错误以 200 状态代码出现,那么理论上它可能是03:05:03
till之前的任何日志吗03:05:03-max_execution_time
?
谢谢