Skip to content

Redirection module's log to syslog #2

Open
@Nyxtorm

Description

@Nyxtorm

Hello,

Thank you for offering this updated module. 😉

I have a question about the module logs. I redirect on my Nginx cluster the logs in syslog to then centralize and sort them.
However, the module's error logs are not redirected like the other nginx logs. They are written to /var/log/nginx/error.log.

  • My rule for redirecting error logs in nginx : error_log syslog:server=unix:/dev/log,facility=local6,severity=error,tag=ngx___;
  • Nginx version: nginx/1.25.1
  • nginx_auth_ldap module also updated
  • Example of error output in /var/log/nginx/error.log not redirected to syslog :
/var/log/nginx/error.log:2023/07/28 13:33:37 [error] 792910#792910: ngx_http_auth_ldap_read_handler: Cnx[0] ldap_result() failed (-1: Can't contact LDAP server)
/var/log/nginx/error.log:2023/07/28 13:33:37 [error] 792910#792910: ngx_http_auth_ldap_read_handler: Cnx[0] LDAP_SERVER_DOWN: No more reconnect retry

Shouldn't the error logs generated by the module be in local6.err ?

Thanks for your help.

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