From: Jason Ish Date: Sat, 12 Oct 2019 16:02:19 +0000 (-0600) Subject: doc: document eve/dns v2 as the default X-Git-Tag: suricata-5.0.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=718fcbb682e4e2ee4583502e344518091fe08562;p=thirdparty%2Fsuricata.git doc: document eve/dns v2 as the default Adds eve/dns v2 format documentation. Update legacy format to require the version field. --- diff --git a/doc/userguide/output/eve/eve-json-output.rst b/doc/userguide/output/eve/eve-json-output.rst index df1fc83db8..badc14874d 100644 --- a/doc/userguide/output/eve/eve-json-output.rst +++ b/doc/userguide/output/eve/eve-json-output.rst @@ -207,11 +207,51 @@ In the ``custom`` option values from both columns can be used. The DNS ~~~ -DNS records are logged one log record per query/answer record. +.. note:: As of Suricata 5.0, the version 2 format of the EVE DNS log + is the default. + +DNS records are logged as one entry for the request, and one entry for +the response. + +YAML:: + + - dns: + # As of Suricata 5.0, version 2 of the eve dns output + # format is the default. + #version: 2 + + # Enable/disable this logger. Default: enabled. + #enabled: yes + + # Control logging of requests and responses: + # - requests: enable logging of DNS queries + # - responses: enable logging of DNS answers + # By default both requests and responses are logged. + #requests: no + #responses: no + + # Format of answer logging: + # - detailed: array item per answer + # - grouped: answers aggregated by type + # Default: all + #formats: [detailed, grouped] + + # Types to log, based on the query type. + # Default: all. + #types: [a, aaaa, cname, mx, ns, ptr, txt] + +DNS v1 Format +~~~~~~~~~~~~~ + +The version 1 DNS output has been obsoleted by the version 2 output +above. The v1 format logs a record per answer in the response possibly +resulting in much more than 2 log records per request and response. YAML:: - dns: + # Must set the version to 1 to get the old style format. + version: 1 # control logging of queries and answers # default yes, no to disable query: yes # enable logging of DNS queries