Skip to content

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

@xdml

Description

@xdml

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions