Access Gateway NGINX log

Access Gateway NGINX logs contain the following events:

  • System start, stop, and related events.
  • Inaccessible domain errors (for example, failure to reach www.somedomain.tld).

Before you begin

Event Fields

Field

Description

TIMESTAMP

The current system date and time.

HOSTNAME

The hostname of the node generating the event.

SUBSYSTEM or HOST

The subsystem or host that generated the error, such as:

  • systemd - system daemon running NGINX
  • emerge
MESSAGE Free form message information about the error

Host not found in upstream

Event issued when NGINX can't reach an external host.

Messages:

  • host not found in upstream my.application.com in /etc/nginx/conf.d/icsgw_. . . active.conf

Likely cause:

  • The service <domain.tld> is down or not responding to requests.

Example:

  • 2020-06-24T05:40:12 [emerg] 1092#0: host not found in upstream "<domain.tld>" in /etc/nginx/conf.d/icsgw_app_87d7fdd2-131b-46ba-8ed1-868b8e97c12b.active.conf:6

System start or stop

Event issued when NGINX starts or stops.

Messages:

  • Stopped Access Gateway Reverse Proxy

  • Started Access Gateway Reverse Proxy

Cause:

  • The instance is starting or stopping.

Examples:

  • 2020-07-07-18:45:57 example.myaccessgateway.com systemd[1]: Stopped Access Gateway Reverse Proxy."
  • 2020-07-07-18:45:57 example.myaccessgateway.com systemd[1]: Started Access Gateway Reverse Proxy."
  • 2020-07-07-18:45:57 example.myaccessgateway.com systemd[1]: Failed to start Access Gateway Reverse Proxy.

System start or stop

Event issued when NGINX failed to proxy a request.

Messages:

  • Various

Cause:

  • Failed to set proxy server address.

Examples:

  • 22020-06-25T03:36:38.000-05:00 example.<externamedomain>.com example.<externaldomain>.com 0GW5gl0Nd: 2020/06/25 03:36:38 [error] 49257#0: * 4983439 [lua] authSession.lua:298: setProxyServerAddr(): scheme:https host:10.148.80.194 port:443, client: 10.148.80.240, server: example.remotehost.com, request: "GET /test/lookup?req_params=params HTTP/1.1", host: "example.remotehost.com", referrer: "https://example.myaccessgateway.com/test/lookup?req_params_page=params"."