content/explugins/gravwell.md
+++ title = "gravwell" description = "gravwell - integrate into Gravwell auditing." weight = 10 tags = [ "plugin" , "gravwell" ] categories = [ "plugin", "external" ] date = "2018-07-04T20:25:00+00:00" repo = "https://github.com/gravwell/coredns" home = "https://github.com/gravwell/coredns/blob/master/README.md" +++
This plugin allows for directly integrating DNS auditing into Gravwell. The plugin acts as an integrated ingester and ships DNS requests and responses directly to a Gravwell instance.
DNS Requests and responses can be encoded as text, JSON, or as a packed binary format.
gravwell {
Ingest-Secret IngestSecretToken
Cleartext-Target 192.168.1.1:4023
Tag dns
Encoding json
Log-Level INFO
#Cleartext-Target 192.168.1.2:4023 #second indexer
#Ciphertext-Target 192.168.1.1:4024
#Insecure-Novalidate-TLS true #disable TLS certificate validation
#Ingest-Cache-Path /tmp/coredns_ingest.cache #enable the local ingest cache
#Max-Cache-Size-MB 1024
}
A sample Corefile which sends DNS requests to a single indexer over an unencrypted connection. Local cache is disabled.
gravwell {
Ingest-Secret IngestSecretToken
Cleartext-Target 192.168.1.1:4023
Tag dns
}
A sample Corefile which sends DNS requests to two indexers over a TLS connection and accepts unsigned certificates. Local cache is disabled. IPv4 and IPv6 addresses are supported for both the Cleartext and Ciphertext targets. IPv6 addresses must be enclosed in brackets.
gravwell {
Ingest-Secret IngestSecretToken
Ciphertext-Target 192.168.1.1:4024
Ciphertext-Target [fe80::dead:beef:feed:febe%p1p1]:4024 #connecting to link local address via device p1p1
Tag dns
Encoding json
Log-Level INFO
}
A sample Corefile which sends DNS requests to two indexers over a TLS connection and accepts unsigned certificates. Local cache is disabled.
gravwell {
Ingest-Secret IngestSecretToken
Ciphertext-Target 192.168.1.1:4024
Ciphertext-Target [dead::beef]:4024
Insecure-Novalidate-TLS true
Tag dns
Encoding json
Log-Level INFO
}
A sample Corefile which sends DNS requests to two indexers and enables a local cache should indexer communication fail. Up to 1GB of data can be locally cached.
gravwell {
Ingest-Secret IngestSecretToken
Cleartext-Target 192.168.1.1:4023
Ciphertext-Target 192.168.1.2:4024
Insecure-Novalidate-TLS true
Ingest-Cache-Path /tmp/coredns_ingest.cache
Max-Cache-Size-MB 1024
Tag dns
Encoding json
Log-Level INFO
}
Getting started with Gravwell Community Edition Community Edition Licenses Ingest API and code