【发布时间】:2015-03-11 20:52:46
【问题描述】:
我正在尝试使用管道自定义日志来过滤我的日志:
httpd.conf:
CustomLog "|/bin/sed -r s/pass/REDACTED/g >> /workplace/tmp/access.log" common
但是,当我向 Apache 发出请求时,我收到一条错误消息
/bin/sed: can't read >>: No such file or directory
我在这里做错了什么? (好像others have been able to use piped CustomLog like this)
【问题讨论】:
-
ls /workplace/tmp/access.log 返回什么?
-
显示文件。我确保每个人都有写权限:-rw-rw-rw-
标签: apache sed httpd.conf