output/dhcp: Include common output options

This commit will cause common metadata values and the community id to be
included in log output when configured.
pull/5115/head
Jeff Lucovsky 5 years ago committed by Victor Julien
parent c6c4936a20
commit ef3840e256

@ -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);

Loading…
Cancel
Save