﻿---
title: Nginx fields
description: Nginx server status metrics collected from various modules. nginx contains the metrics that were scraped from nginx. stubstatus contains the metrics that...
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/metricbeat/exported-fields-nginx
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Nginx fields
Nginx server status metrics collected from various modules.

## nginx

`nginx` contains the metrics that were scraped from nginx.

## stubstatus

`stubstatus` contains the metrics that were scraped from the ngx_http_stub_status_module status page.
<definitions>
  <definition term="nginx.stubstatus.hostname">
    Nginx hostname.
    type: keyword
  </definition>
  <definition term="nginx.stubstatus.active">
    The current number of active client connections including Waiting connections.
    type: long
  </definition>
  <definition term="nginx.stubstatus.accepts">
    The total number of accepted client connections.
    type: long
  </definition>
  <definition term="nginx.stubstatus.handled">
    The total number of handled client connections.
    type: long
  </definition>
  <definition term="nginx.stubstatus.dropped">
    The total number of dropped client connections.
    type: long
  </definition>
  <definition term="nginx.stubstatus.requests">
    The total number of client requests.
    type: long
  </definition>
  <definition term="nginx.stubstatus.current">
    The current number of client requests.
    type: long
  </definition>
  <definition term="nginx.stubstatus.reading">
    The current number of connections where Nginx is reading the request header.
    type: long
  </definition>
  <definition term="nginx.stubstatus.writing">
    The current number of connections where Nginx is writing the response back to the client.
    type: long
  </definition>
  <definition term="nginx.stubstatus.waiting">
    The current number of idle client connections waiting for a request.
    type: long
  </definition>
</definitions>