Add the common eve fields like metadata and community id.
LogFileCtx *file_ctx;
uint32_t flags;
void *rs_logger;
+ OutputJsonCommonSettings cfg;
} LogDHCPFileCtx;
typedef struct LogDHCPLogThread_ {
return TM_ECODE_FAILED;
}
+ EveAddCommonOptions(&thread->dhcplog_ctx->cfg, p, f, js);
+
rs_dhcp_logger_log(ctx->rs_logger, tx, js);
if (!jb_close(js)) {
goto fail;
return result;
}
dhcplog_ctx->file_ctx = ajt->file_ctx;
+ dhcplog_ctx->cfg = ajt->cfg;
OutputCtx *output_ctx = SCCalloc(1, sizeof(*output_ctx));
if (unlikely(output_ctx == NULL)) {