V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
Livid
V2EX  ›  NGINX

有人试过把 Nginx 的 error_log 用 syslog 接口发到 Loggly 么?

  •  
  •   Livid · 2014-07-02 18:13:40 +08:00 · 3657 次点击
    这是一个创建于 3599 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用这样的配置试了一下:

    error_log syslog:server=logs-01.loggly.com:514 info;

    但是 Loggly 那边什么都收不到。

    而类似的配置在 papertrailapp.com 是可以收到 log 的:

    error_log syslog:server=logs.papertrailapp.com:12345 info;
    2 条回复    2014-07-02 20:14:57 +08:00
    Livid
        1
    Livid  
    MOD
    OP
       2014-07-02 19:06:36 +08:00
    看起来问题是因为我没有放 Customer Token,但是在 Nginx 这样的配置语法下,应该在什么地方插入 Customer Token 呢?

    http://nginx.org/en/docs/http/ngx_http_log_module.html
    rrfeng
        2
    rrfeng  
       2014-07-02 20:14:57 +08:00
    Token 是放在 syslog 的 header 里而不是 nginx_http log 的内容里吧?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3158 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 14:27 · PVG 22:27 · LAX 07:27 · JFK 10:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.