64#define MODULE_NAME "JsonMetadataLog"
87 return MetadataJson(
tv, aft, p);
100 .ConditionFunc = JsonMetadataLogCondition,
103 .ThreadExitPrintStatsFunc = NULL,
int OutputJsonLogFlush(ThreadVars *tv, void *thread_data, const Packet *p)
OutputInitResult OutputJsonLogInitSub(SCConfNode *conf, OutputCtx *parent_ctx)
TmEcode JsonLogThreadInit(ThreadVars *t, const void *initdata, void **data)
TmEcode JsonLogThreadDeinit(ThreadVars *t, void *data)
SCJsonBuilder * CreateEveHeader(const Packet *p, enum SCOutputJsonLogDirection dir, const char *event_type, JsonAddrInfo *addr, OutputJsonCtx *eve_ctx)
void EveAddMetadata(const Packet *p, const Flow *f, SCJsonBuilder *js)
void OutputJsonBuilderBuffer(ThreadVars *tv, const Packet *p, Flow *f, SCJsonBuilder *js, OutputJsonThreadCtx *ctx)
void OutputRegisterPacketSubModule(LoggerId id, const char *parent_name, const char *name, const char *conf_name, OutputInitSubFunc InitFunc, OutputPacketLoggerFunctions *output_logger_functions)
Register a packet output sub-module.
OutputJsonCommonSettings cfg
Per thread variable structure.