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.
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_loganderror_logdirective syntax as described in official documentation.That is:
where parameters are:
server=addressDefines 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 theunix: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=stringSets facility of syslog messages, as defined in RFC 3164. Facility can be one ofkern,user,mail,daemon,auth,intern,lpr,news,uucp,clock,authpriv,ftp,ntp,audit,alert,cron,local0..local7. Default islocal7.severity=stringSets severity of syslog messages, as defined in RFC 3164. Possible values are the same as for the second parameter (level) of theerror_logdirective. Default isinfo. Only foraccess_logdirective.tag=stringSets tag of syslog messages. Default isnginx.See examples within official documentation.