﻿---
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://docs-v3-preview.elastic.dev/elastic/beats/pull/47883/reference/metricbeat/exported-fields-nginx
---

# 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>