【发布时间】:2014-10-24 20:32:11
【问题描述】:
我需要将 Nginx 日志放入 syslog。我在 1.6 中的 Nginx 版本,系统 - Ubuntu 12.04。 在 Nginx 配置中我这样做:
server {
# some settings here
access_log syslog:localhost;
# and some settings here
}
使用 curl 发出请求:
curl http://localhost/
获取标准 Nginx 页面,但 syslog 仍然为空...
UPD:在 rsyslog.conf 以下行中取消注释后问题已得到修复:
#$ModLoad imudp
#$UDPServerRun 514
【问题讨论】:
标签: logging nginx configuration syslog