﻿---
title: Coredns fields
description: coredns Module coredns contains statistics that were read from coreDNS Contains statistics related to the coreDNS service 
url: https://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/metricbeat/exported-fields-coredns
products:
  - Beats
  - Metricbeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Coredns fields
coredns Module

## coredns

`coredns` contains statistics that were read from coreDNS

## stats

Contains statistics related to the coreDNS service
<definitions>
  <definition term="coredns.stats.panic.count">
    Total number of panics
    type: long
  </definition>
  <definition term="coredns.stats.dns.request.count">
    Total query count
    type: long
  </definition>
  <definition term="coredns.stats.dns.request.duration.ns.bucket.*">
    Request duration histogram buckets in nanoseconds
    type: object
  </definition>
  <definition term="coredns.stats.dns.request.duration.ns.sum">
    Requests duration, sum of durations in nanoseconds
    type: long
    format: duration
  </definition>
  <definition term="coredns.stats.dns.request.duration.ns.count">
    Requests duration, number of requests
    type: long
  </definition>
  <definition term="coredns.stats.dns.request.size.bytes.bucket.*">
    Request Size histogram buckets
    type: object
  </definition>
  <definition term="coredns.stats.dns.request.size.bytes.sum">
    Request Size histogram sum
    type: long
  </definition>
  <definition term="coredns.stats.dns.request.size.bytes.count">
    Request Size histogram count
    type: long
  </definition>
  <definition term="coredns.stats.dns.request.do.count">
    Number of queries that have the DO bit set
    type: long
  </definition>
  <definition term="coredns.stats.dns.request.type.count">
    Counter of queries per zone and type
    type: long
  </definition>
  <definition term="coredns.stats.type">
    Holds the query type of the request
    type: keyword
  </definition>
  <definition term="coredns.stats.dns.response.rcode.count">
    Counter of responses per zone and rcode
    type: long
  </definition>
  <definition term="coredns.stats.rcode">
    Holds the rcode of the response
    type: keyword
  </definition>
  <definition term="coredns.stats.family">
    The address family of the transport (1 = IP (IP version 4), 2 = IP6 (IP version 6))
    type: keyword
  </definition>
  <definition term="coredns.stats.dns.response.size.bytes.bucket.*">
    Response Size histogram buckets
    type: object
  </definition>
  <definition term="coredns.stats.dns.response.size.bytes.sum">
    Response Size histogram sum
    type: long
  </definition>
  <definition term="coredns.stats.dns.response.size.bytes.count">
    Response Size histogram count
    type: long
  </definition>
  <definition term="coredns.stats.server">
    The server responsible for the request
    type: keyword
  </definition>
  <definition term="coredns.stats.zone">
    The zonename used for the request/response
    type: keyword
  </definition>
  <definition term="coredns.stats.proto">
    The transport of the response ("udp" or "tcp")
    type: keyword
  </definition>
  <definition term="coredns.stats.dns.cache.hits.count">
    Cache hits count for the cache plugin
    type: long
  </definition>
  <definition term="coredns.stats.dns.cache.misses.count">
    Cache misses count for the cache plugin
    type: long
  </definition>
</definitions>