linux - Apache ss 日志文件奇怪的行为

标签 linux apache

我的 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/

相关文章:

c - 设置程序调试缓冲区溢出系统

linux raw socket - 接收自定义数据包

linux - 这些 LAMP 权限安全吗?

php - move_uploaded 文件 :failed to open stream: Permission denied in/srv/http/upload. php

django - django中项目结构和目录所有者的好方法是什么?

java - Jmeter 2.10 HTTP 记录器抛出 keytool 异常

linux - 自动导入 Mercurial 存储库(例如 SVN Externals)

linux - 支持Linux机器的打包工具

linux - 根据 puppet 中的变量检索事实信息

php - 如何从其他计算机访问本地主机(xampp)