GrepBoard/Manuals
47 manuals ·

Nginx logs 2

  1. Find which paths return 5xx in an Nginx access log

    Count server errors per path with awk, merge query strings, and narrow by status code and time window — one-liners for the default combined format.

    Nginx combined log format · GNU awk 5.2 · generated test log (Ubuntu 24.04)
  2. Tell the cause of an Nginx 502 Bad Gateway from error.log

    The access log only says 502. Match four error.log messages to their causes and the command that confirms each, and tell them apart from a 504.

    Ubuntu 24.04.5 · Nginx 1.24.0 · Python 3.12 (test backends)