Skip to main content
Sumo Logic

Collect Logs for Nginx

This page provides instructions for configuring log and metric collection for the Sumo Logic App for Nginx.

Collection Process Overview

Configuring log and metric collection for the Nginx App includes the following tasks:

Configure Fields in Sumo Logic

Create the following Fields in Sumo Logic prior to configuring the collection. This ensures that your logs and metrics are tagged with relevant metadata, which is required by the app dashboards. For information on setting up fields, see the Fields help page.

If you are using Nginx in a  non-Kubernetes environment create the fields:

  • component
  • environment
  • webserver_system
  • webserver_farm
  • pod

If you are using Nginx in a Kubernetes environment create the fields:

  • pod_labels_component
  • pod_labels_environment
  • pod_labels_webserver_system
  • pod_labels_webserver_farm

Configure Collection for Nginx

Sumo Logic supports the collection of logs and metrics data from Nginx in both Kubernetes and non-Kubernetes environments. 

Please click on the appropriate links below based on the environment where your Nginx farms are hosted.