]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns/eve: use default formats if formats is empty
authorJason Ish <jason.ish@oisf.net>
Fri, 27 Oct 2023 16:19:31 +0000 (10:19 -0600)
committerVictor Julien <victor@inliniac.net>
Mon, 30 Oct 2023 18:33:28 +0000 (19:33 +0100)
commita240a93b6931c94485d336cdc340e16929437a01
treed65a0c4231be864554e9d72d8dd641782c7b5621
parentd4e4bdac905d70ed36cb778eecf5b2178e8aba22
dns/eve: use default formats if formats is empty

If the configuration field "formats" is empty, DNS response records do
not have any relevant information other than that there was a
response, but not much about the response.

I'm pretty sure the intention here was to log the response details if
no formats were provided, which is what happens when the field is
commented out.

So if no formats are specified, use the default of all.

Bug: #6420
src/output-json-dns.c