我的 apache 配置具有以下日志选项。
CustomLog logs/ssl_request_7_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b %s \"%{Referer}i\" \"%{User-agent}i\""
我可以看到他们...
[root@webserver1 ~]# ls -l /var/log/httpd/ssl_request_7_log*
-rw-r--r-- 1 root root 0 May 27 04:02 /var/log/httpd/ssl_request_7_log
-rw-r--r-- 1 root root 37299758 Oct 8 15:43 /var/log/httpd/ssl_request_7_log.1
-rw-r--r-- 1 root root 139769 May 21 10:49 /var/log/httpd/ssl_request_7_log.2
您是否注意到 ssl_request_7_log 文件大小为零。它附加实时日志在 ssl_request_7_log.1 文件中,但不在 ssl_request_7_log 中。为什么????
最佳答案
此问题已解决,问题是日志轮换。
关于linux - Apache ss 日志文件奇怪的行为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12788435/