Skip to content

Don't redirect error_log to stderr #940

@ViliusS

Description

@ViliusS

Describe the bug

According to https://nginx.org/en/docs/ngx_core_module.html#error_log default error_log level for Nginx should be error, but official docker image is built with level notice. This produces all sorts of issues in logging/monitoring systems. Most often, just graceful ordinary restart produces errors in logs (and then alerts).

Image

To reproduce

Steps to reproduce the behavior:

  1. Run the NGINX Docker image.
  2. Check /var/log/nginx/error.log for startup notices (which are not actually errors).

Expected behavior

error_log should be set to error or maybe warn level, definitely not notice.

Your environment

  • nginx:1.25.1-alpine-slim
  • Kubernetes / Docker Desktop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions