-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
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=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.
Metadata
Metadata
Assignees
Labels
No labels