[role="xpack"]

:modulename: coredns
:has-dashboards: true

== CoreDNS module

This is a filebeat module for CoreDNS. It supports both standalone CoreDNS deployment and
CoreDNS deployment in Kubernetes.

include::../include/gs-link.asciidoc[]

[float]
=== Compatibility

Although this module has been developed against Kubernetes v1.13.x, it is expected to work
with other versions of Kubernetes.

include::../include/configuring-intro.asciidoc[]

:fileset_ex: log

include::../include/config-option-intro.asciidoc[]

[float]
==== `log` fileset settings

Example config:

[source,yaml]
----
- module: coredns
  log:
    enabled: true
    var.paths: ["/var/log/coredns.log"]
    var.tags: ["coredns", "staging"]
----

include::../include/var-paths.asciidoc[]

*`var.tags`*::

An array of tags describing the monitored CoreDNS setup.

[float]
=== Example dashboard

This module comes with a sample dashboard.

[role="screenshot"]
image::./images/kibana-coredns.jpg[]
