]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/dhcp: Include common output options
authorJeff Lucovsky <jeff@lucovsky.org>
Mon, 29 Jun 2020 13:50:53 +0000 (09:50 -0400)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Jun 2020 18:02:40 +0000 (20:02 +0200)
This commit will cause common metadata values and the community id to be
included in log output when configured.

src/output-json-dhcp.c

index 183d3d08f10357e2ab6d545b188185886f669c66..ecdd9d237c1d7a996176c4b61d6d790ae3d6632f 100644 (file)
@@ -81,6 +81,7 @@ static int JsonDHCPLogger(ThreadVars *tv, void *thread_data,
         goto fail;
     }
 
+    EveAddCommonOptions(&thread->dhcplog_ctx->cfg, p, f, js);
     MemBufferReset(thread->buffer);
     OutputJsonBuilderBuffer(js, thread->dhcplog_ctx->file_ctx, &thread->buffer);
     jb_free(js);