V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
Livid
270.9D
571.98D
V2EX  ›  NGINX

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

  •  
  •   Livid ·
    PRO
    · Jul 2, 2014 · 4255 views
    This topic created in 4326 days ago, the information mentioned may be changed or developed.
    用这样的配置试了一下:

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

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

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

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

    http://nginx.org/en/docs/http/ngx_http_log_module.html
    rrfeng
        2
    rrfeng  
       Jul 2, 2014
    Token 是放在 syslog 的 header 里而不是 nginx_http log 的内容里吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4145 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 00:55 · PVG 08:55 · LAX 17:55 · JFK 20:55
    ♥ Do have faith in what you're doing.