|
suricata
|

Go to the source code of this file.
Functions | |
| OutputJsonThreadCtx * | CreateEveThreadCtx (ThreadVars *t, OutputJsonCtx *ctx) |
| void | FreeEveThreadCtx (OutputJsonThreadCtx *ctx) |
| 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) |
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 132 of file output-json-common.c.
References FreeEveThreadCtx(), and TM_ECODE_OK.

| TmEcode JsonLogThreadInit | ( | ThreadVars * | t, |
| const void * | initdata, | ||
| void ** | data | ||
| ) |
Definition at line 99 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.

| int OutputJsonLogFlush | ( | ThreadVars * | tv, |
| void * | thread_data, | ||
| const Packet * | p | ||
| ) |
Definition at line 73 of file output-json-common.c.
References OutputJsonThreadCtx_::ctx, OutputJsonCtx_::file_ctx, LogFileCtx_::filename, LogFileFlush(), ThreadVars_::name, SCLogDebug, and tv.

| OutputInitResult OutputJsonLogInitSub | ( | SCConfNode * | conf, |
| OutputCtx * | parent_ctx | ||
| ) |
Definition at line 82 of file output-json-common.c.
References OutputCtx_::data, OutputCtx_::DeInit, SCCalloc, and unlikely.
Referenced by JsonFlowLogRegister(), JsonNetFlowLogRegister(), and OutputRegisterLoggers().
