加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

如何在使用syslog时将perl stderr转换为httpd日志文件

发布时间:2020-12-16 06:12:36 所属栏目:大数据 来源:网络整理
导读:这个问题是关于HTTPD(Apache)2的.在centOS和modperl 1.7 当我使用apache指令ErrorLog logs / error_log时,我的perl警告显示在error_log文件中.当我将其更改为ErrorLog syslog:local1时,syslog目标中不会显示perl警告.我的问题是,我该如何解决这个问题? (sy
这个问题是关于HTTPD(Apache)2的.在centOS和modperl 1.7

当我使用apache指令ErrorLog logs / error_log时,我的perl警告显示在error_log文件中.当我将其更改为ErrorLog syslog:local1时,syslog目标中不会显示perl警告.我的问题是,我该如何解决这个问题?

(syslog读取:local1.* / var / log / httpd_error)

目前的Apache文档说这个

A very wide variety of different
messages can appear in the error log.
Most look similar to the example
above. The error log will also contain
debugging output from CGI scripts. Any
information written to stderr by a CGI
script will be copied directly to the
error log.

旧的Apache(1.3)文档谈论了一个名为HookStderr和stderr被发送到/ dev / null的东西.我尝试使用这个,configtest失败了.

有没有人这样做过?

解决方法

https://serverfault.com/questions/241751/how-to-get-perl-stderr-to-httpd-log-file-when-using-syslog

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读