All Products
Search
Document Center

Serverless App Engine:What do I do if the real-time logs of NGINX are empty and can be viewed in file logs?

Last Updated:Oct 20, 2025

SAE allows you to collect real-time logs and file logs at the same time. If the preceding issue occurs, you must check whether the image configurations contain standard output (stdout). The error_log and access_log commands of an NGINX server are used to specify file paths. If you want to collect stdout and standard errors (stderr) at the same time, you must configure the stdout/stder setting of a Docker container. You can use one of the following methods to check whether the stdout/stder setting is configured in the Dockerfile of the container.

  • Method 1: Send logs to /dev/stdout.
    daemon off;
    error_log /dev/stdout info;
    http {
      access_log /dev/stdout;
    }
  • Method 2: Run the access_log and error_log commands to pass the file paths.
    access_log  /var/log/nginx/access.log
    error_log /var/log/nginx/error.log