]> git.ipfire.org Git - thirdparty/suricata.git/commit
dns/eve: use default formats if formats is empty 9719/head 9730/head
authorJason Ish <jason.ish@oisf.net>
Fri, 27 Oct 2023 16:19:31 +0000 (10:19 -0600)
committerShivani Bhardwaj <shivanib134@gmail.com>
Tue, 31 Oct 2023 11:40:55 +0000 (17:10 +0530)
commitb0e8b6fb0744b4587c23b27e8faa4aa302a66637
treeff2104b46bd23ed7271b76342be67405f9623e54
parent9e0c7c4b54f4230044ee57dfc2dce464e469bacf
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
(cherry picked from commit a240a93b6931c94485d336cdc340e16929437a01)
src/output-json-dns.c