Logs Collected

The information sent to Stackdriver Logging is collected from:

  • NGINX Access Logs
  • NGINX Error Logs
NGINX Access Logs ExampleNGINX Access Logs Example

NGINX Access Logs Example

NGINX Error Logs ExampleNGINX Error Logs Example

NGINX Error Logs Example

Log Collection Setup

Follow these steps to setup log collection for NGINX.

Pre-requisites

Find the access and error logs file locations.

Configure an NGINX Source

  1. Install the BindPlane Log Agent on the host system.
  2. Login to BindPlane and select the Logs tab.
Logs TabLogs Tab

Logs Tab

  1. Select the Sources tab.
Sources TabSources Tab

Sources Tab

  1. In the top-right portion of the screen, click on the Add Source Configuration button
Add Source Configuration ButtonAdd Source Configuration Button

Add Source Configuration Button

  1. Choose NGINX
  2. Fill out the NGINX log configuration options.
NGINX Log Configuration FormNGINX Log Configuration Form

NGINX Log Configuration Form