-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: how use apisix send log to aliyun sls #2169
Comments
I have see the repository of https://github.com/cloudflare/lua-resty-logger-socket, It just implementation socket log to send log to syslog-ng(collector) source.The syslog-ng has sources and destinations. I should publish "syslog-ng" for proxy for ali cloud log service(sls). I think should I send log to sls without proxy. |
I think we can send the log to aliyun sls is an easy way, and that is a stable way. use |
another way, set |
Agree with you and I use cosocket implementation it, please review |
welcome PR,then the community can share this feature. ^_^ |
I use cosocket and processor to send logs to sls , users can define different routes or services plugins to send logs to different log store which in sls.Users can use sls do anything such as data analysis monitor and alarm etc. For how to use I finish the doc, users can reference sls logger doc to use it. The PR is finished please review @membphis @moonming. According to #2177 |
Issue description
How apisix can send log to aliyun? I think ailiyun support syslog standard rfc5424( https://help.aliyun.com/document_detail/112903.html?spm=a2c4g.11186623.6.763.28801b47aqgVZq).
But the nginx support syslog standard rfc3164(http://nginx.org/en/docs/syslog.html).
And I can not find the log message format filed "STRUCTURED-DATA" in rfc3164(https://tools.ietf.org/html/rfc3164#section-4.1.1 ),But find it in rfc5424(https://tools.ietf.org/html/rfc5424?spm=a2c4g.11186623.2.17.5b0f1b47l82QJg).
So I am confused how should I use it in syslog plugin.
Environment
apisix version
):The text was updated successfully, but these errors were encountered: