Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make access_log and error_log directive syntax according to official documentation #12

Open
xdml opened this issue Aug 28, 2013 · 1 comment

Comments

@xdml
Copy link

xdml commented Aug 28, 2013

Syslog feature is available as part of commercial subscription and documented in official documentation at http://nginx.org/en/docs/http/ngx_http_log_module.html and http://nginx.org/en/docs/ngx_core_module.html#error_log.

It will be nice, if this community patch uses same access_log and error_log directive syntax as described in official documentation.

That is:

access_log syslog:server=address,[facility=string][,severity=string][,tag=string] format;
error_log syslog:server=address[,facility=string][,tag=string] level;

where parameters are:

  • server=address Defines an address of a syslog server. An address can be specified as a domain name or IP address, and an optional port, or as a UNIX-domain socket path specified after the unix: prefix. If port is not specified, the port 514 is used. If a domain name resolves to several IP addresses, the first resolved address is used.
  • facility=string Sets facility of syslog messages, as defined in RFC 3164. Facility can be one of kern, user, mail, daemon, auth, intern, lpr, news, uucp, clock, authpriv, ftp, ntp, audit, alert, cron, local0..local7. Default is local7.
  • severity=string Sets severity of syslog messages, as defined in RFC 3164. Possible values are the same as for the second parameter (level) of the error_log directive. Default is info. Only for access_log directive.
  • tag=string Sets tag of syslog messages. Default is nginx.

See examples within official documentation.

@yaoweibin
Copy link
Owner

I'm now the maintainer of tengine (http://tengine.taobao.org/), it's a fork of nginx and it can support the syslog natively. It's all opensource and free. Would you like to have a try with tengine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants