return output_ctx;
}
+static OutputCtx *JsonDropLogInitCtxSub(ConfNode *conf, OutputCtx *parent_ctx)
+{
+ AlertJsonThread *ajt = parent_ctx->data;
+
+ OutputCtx *output_ctx = SCCalloc(1, sizeof(OutputCtx));
+ if (unlikely(output_ctx == NULL)) {
+ return NULL;
+ }
+
+ output_ctx->data = ajt->file_ctx;
+ output_ctx->DeInit = JsonDropLogDeInitCtx;
+ return output_ctx;
+}
+
/**
* \brief Log the dropped packets when engine is running in inline mode
*
return FALSE;
}
-
void TmModuleJsonDropLogRegister (void) {
tmm_modules[TMM_JSONDROPLOG].name = MODULE_NAME;
tmm_modules[TMM_JSONDROPLOG].ThreadInit = JsonDropLogThreadInit;
OutputRegisterPacketModule(MODULE_NAME, "drop-json-log",
JsonDropLogInitCtx, JsonDropLogger, JsonDropLogCondition);
+ OutputRegisterPacketSubModule("eve-log", MODULE_NAME, "drop-json",
+ JsonDropLogInitCtxSub, JsonDropLogger, JsonDropLogCondition);
}
#else