suricata
|
Go to the source code of this file.
Functions | |
OutputJsonThreadCtx * | CreateEveThreadCtx (ThreadVars *t, OutputJsonCtx *ctx) |
void | FreeEveThreadCtx (OutputJsonThreadCtx *ctx) |
OutputInitResult | OutputJsonLogInitSub (ConfNode *conf, OutputCtx *parent_ctx) |
TmEcode | JsonLogThreadInit (ThreadVars *t, const void *initdata, void **data) |
TmEcode | JsonLogThreadDeinit (ThreadVars *t, void *data) |
Definition in file output-json-common.c.
OutputJsonThreadCtx* CreateEveThreadCtx | ( | ThreadVars * | t, |
OutputJsonCtx * | ctx | ||
) |
Definition at line 29 of file output-json-common.c.
References OutputJsonThreadCtx_::buffer, ctx, OutputJsonThreadCtx_::ctx, OutputJsonThreadCtx_::file_ctx, ThreadVars_::id, JSON_OUTPUT_BUFFER_SIZE, LogFileEnsureExists(), MemBufferCreateNew(), MemBufferFree(), SCCalloc, SCFree, and unlikely.
void FreeEveThreadCtx | ( | OutputJsonThreadCtx * | ctx | ) |
Definition at line 58 of file output-json-common.c.
References ctx, MemBufferFree(), and SCFree.
Referenced by JsonLogThreadDeinit().
TmEcode JsonLogThreadDeinit | ( | ThreadVars * | t, |
void * | data | ||
) |
Definition at line 123 of file output-json-common.c.
References FreeEveThreadCtx(), and TM_ECODE_OK.
TmEcode JsonLogThreadInit | ( | ThreadVars * | t, |
const void * | initdata, | ||
void ** | data | ||
) |
Definition at line 90 of file output-json-common.c.
References OutputJsonThreadCtx_::buffer, OutputJsonThreadCtx_::ctx, OutputJsonCtx_::file_ctx, OutputJsonThreadCtx_::file_ctx, ThreadVars_::id, JSON_OUTPUT_BUFFER_SIZE, LogFileEnsureExists(), MemBufferCreateNew(), MemBufferFree(), SCCalloc, SCFree, TM_ECODE_FAILED, TM_ECODE_OK, and unlikely.
OutputInitResult OutputJsonLogInitSub | ( | ConfNode * | conf, |
OutputCtx * | parent_ctx | ||
) |
Definition at line 73 of file output-json-common.c.
References OutputCtx_::data, OutputCtx_::DeInit, SCCalloc, and unlikely.
Referenced by JsonArpLogRegister(), JsonFlowLogRegister(), JsonMetadataLogRegister(), JsonNetFlowLogRegister(), and OutputRegisterLoggers().